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
Currently, if you pass an undefined dependency into createSelector(), reselect correctly throws an exception. The string in that exception can be made a little bit more clearer, which would be helpful for clients that are hitting this and trying to find the source of the problem.
Here is how the error string is computed right now. An easy way to make this better would be to change this
Circular dependencies are a common pain point in Javascript apps. If you google this error string you will find articles about people trying to solve this issue. It's not reselect's fault at all, but reselect can help make them easier to find if they happen to surface at the reselect layer.
Currently, if you pass an undefined dependency into createSelector(), reselect correctly throws an exception. The string in that exception can be made a little bit more clearer, which would be helpful for clients that are hitting this and trying to find the source of the problem.
Here is how the error string is computed right now. An easy way to make this better would be to change this
to this
Circular dependencies are a common pain point in Javascript apps. If you google this error string you will find articles about people trying to solve this issue. It's not reselect's fault at all, but reselect can help make them easier to find if they happen to surface at the reselect layer.
https://decembersoft.com/posts/error-selector-creators-expect-all-input-selectors-to-be-functions/
The text was updated successfully, but these errors were encountered: