Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Dynamic routes #169

Closed
SCLeoX opened this issue Jun 3, 2017 · 6 comments
Closed

Dynamic routes #169

SCLeoX opened this issue Jun 3, 2017 · 6 comments

Comments

@SCLeoX
Copy link

SCLeoX commented Jun 3, 2017

Is there a way to change routes object after the store is created?

@tptee
Copy link
Contributor

tptee commented Jun 18, 2017

Not yet, although it's coming up soon. I'm hoping to release #189 soon, which allows Fragments to ignore static routes entirely, making them code-splittable 😄

@faceyspacey
Copy link

@SCLeoX what's the use case for changing route objects after the store is created?

@SCLeoX
Copy link
Author

SCLeoX commented Jun 22, 2017

@faceyspacey The fragments are not all loaded at beginning. At beginning, we do not want to send over information about our whole site as some of them should be only accessible by an admin.

@faceyspacey
Copy link

And this isn't solved by simply making the content empty on the URLs without proper with? This is just about preventing hackers from seeing URLs correct?

@SCLeoX
Copy link
Author

SCLeoX commented Jun 22, 2017

Yes. It prevents hackers from understanding our admin panel's structure.

@tptee
Copy link
Contributor

tptee commented Jul 9, 2017

Implemented a replaceRoutes action creator in v14.2.0! You'll want to look at the advanced docs for usage.

If you're just using Fragment and not relying on the static routes for their result key, you're already set, since we decoupled Fragment from the static routes in v14.

@tptee tptee closed this as completed Jul 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants