-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Necessary to put complete routes in store? #57
Comments
Route handlers shouldn't be put into state. If this is currently the case it seems wrong. Shouldn't we be able to match any location (even persisted one) to the handlers during the rendering instead? |
(I have only passing familiarity with how this project works so forgive my ignorant comments. I'm just hoping @acdlite can help me understand this part :-) |
Redux React Router is pretty hands off about the state that is returned from React Router. We mostly just treat it as an opaque blob of "stuff" and then pass it to Right now, one of the things React Router keeps in its state is an array of the currently matched routes. It does this so that It may be possible for us to sneakily remove the components property from the active routes before sending it to the store, then add them back before rendering. Now that the API is mostly settled I'll look into this soon. |
Thanks. :-) |
No problem, I didn't get that vibe at all :) |
(or maybe it's not the issue) I'm getting this
Oh, I found the cause - it was |
I also ran into this issue, but the error occurs following the The URL I'm trying to reach is: |
This does not occur if I go to a URL with a single |
Is this still an issues? I will close this for now. |
I'm getting this error when I put some components in the state. The component that gives me the error is decorated (may be relevant). Can anyone suggest how I can troubleshoot the cause of my issue? I saw some posts that suggest decorating the component may be the root cause of the error. |
This also puts all components in the store and its even possible to break things with a cyclic dependency.
For example:
<App store={store} />
root component that receives the store using a prop (the store is created differently by client/server).<ReduxRouter>{routes}</ReduxRouter>
is a child of<App>
_owner
relation, also<App>
is stored in the store (deeply nested somewhere in routes)App
. Cyclic dependency is complete.I hope this makes any sense. It's a constructed case because store is passed to
<App>
. But nevertheless it breaks redux-devtools with persistState.The text was updated successfully, but these errors were encountered: