You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, so I need to call a function and check a return value. If a function is a stateless functional component, it may return ReactElement. If not so, it's a saga. Anyway, we can execute it using call effect.
I noticed that I can also use is-generator module to determine the value is a generator function or a normal function. typeof value.prototype.isReactComponent === 'undefined' && !isGeneratorFunction(value) is a stateless functional component.
The route definition accepts only Component or PureComponent because it uses
isReactComponent
to determine components or generators.The text was updated successfully, but these errors were encountered: