-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Mark fragments as experimental #48
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fragments in Superglue is a simple way to help identify and mutate cross cutting concerns.
For example, a shared header, if marked as a fragment, will get updated across pages in the cache automatically, if that page header changes. This means that today, a fragment is duplicated across all pages, and updating is a process of iterating through the cache and making changes.
I haven’t used this feature extensively yet, and i’m unsure of its effectiveness. There may also be better ways of modeling this in redux. Maybe a fragment node somewhere in the tree and having a selector that takes the fragment and insert it in the page state. This way, we only have one source of truth. That would be nice, but that also conflicts with digging since we need the complete tree to mutate the page state.
Anyway, I think its worth marking it in the documentation as a experimental feature.
The text was updated successfully, but these errors were encountered: