-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Set declarative options by route #2894
Comments
The route object is on BTW, @dblock pointed me at your redux-react-controller repo on the NYCTech Slack – you should take a look at discussions regarding the future of context, specifically from e.g. #2646 (comment); I believe the pattern that you use is at meaningful risk of breaking in future React releases. |
Ah, great! I'm not sure if I missed something when scanning the docs (and I just rescanned them again), but did not realize this was the case. The structure In case someone else does a similar thing, I'm using this like:
|
You're right – we probably need a more advanced "server rendering" guide that covers use cases beyond "feed |
Re: redux-react-controller, thanks for the info.
seems particularly applicable. Sounds like a good change, to prevent |
As far as I can tell, the API doesn't yet support a simple way to have routing parameters set by the route configuration. For example, I might have a wiki, which could have an meta routes for each page:
Let's say I designed the app so that the root component is the same, but throughout the app, different components will modify their behavior based on this mode property. Also, I want to render universally, so I want to be able to access the mode property via
match
, because perhaps I want to prefetch some data based on mode. Is there a way to do this? The idea of reparsing the URL elsewhere to infer the mode smells, if the route config should be the source of truth.The text was updated successfully, but these errors were encountered: