Skip to content
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

Closed
jho406 opened this issue Apr 15, 2024 · 0 comments
Closed

Mark fragments as experimental #48

jho406 opened this issue Apr 15, 2024 · 0 comments

Comments

@jho406
Copy link
Collaborator

jho406 commented Apr 15, 2024

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.

@jho406 jho406 closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant