Turn on JavaScript
Pritish Vaidya
Productivity

A simple and more accurate estimation of Read Time for Medium articles in JavaScript

medium.freecodecamp.org

Introduction As explained in the New Yorker The more we know about something — including precisely how much time it will consume — the greater the chance we will commit to it. Knowing in advance how long an article helps with better time management by allowing us to plan further ahead. Why should I use a new script? Yes, there are many open source libraries available on npm * *but they contain several flaws. Before that, let's take a look at these two articles on Medium. Read Time — Medium Support Read Time and You The above two articles have the following key features Average Read Time…

Show more

How to monitor network changes using Redux Saga in React Native

medium.freecodecamp.org

What is an Event Channel? Redux Saga consists of eventChannels to communicate between external events and sagas as a factory function. The events are from the event sources other than the redux store . Here’s a basic example from the docs : Things to note: The first argument of the eventChannel is a listener function. The return method is the unregister listener function. Emitter initializes the listener once _after which all the events from the listener are _passed to the emitter function by invoking it. How should I hook up Redux Saga’s Event Channel with React Native’s Network…

Show more