-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
fix: small improvements/fixes to cookie chunker in ssr #760
Conversation
811283f
to
5c8f38c
Compare
One confirmed support ticket that is demonstrating the issues resolved by these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems sane at brief glance, approving for now to unblock and will test in the morrow if not yet merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the package doesn't build with pnpm build:ssr
edit: i've fixed the build errors in this commit
@hf remember to generate a changeset too! |
Does this change fix the bug I just submitted? #766 |
d43a5a9
to
e4e9b0d
Compare
Maybe... |
e4e9b0d
to
31b8f99
Compare
Fixes/improves some edge cases in the cookie chunker for
ssr
:deleteChunks
now attempts to delete both the key and potential leftover chunks, instead of deleting the first thing it notices. This should decrease the total size of cookies by removing orphaned chunks, and also is a bit safer in situations where leftover chunks are mistaken as the continuation of other chunks.setItem
, and instead do it serially.setItem
first clears all chunks before setting the new ones.