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

Reduce saveState data in sessionStorage #177

Merged

Conversation

koba04
Copy link
Contributor

@koba04 koba04 commented Dec 7, 2015

I'm using history with react-router. Thank you for your great work!

I'm using Session Storage wth my app.
So I often confirm the developer console for debugging app data in Session Storage.

history is adding a state to sessionStorage every history changes.
As a result, my Session Storage is filled by history's state regardless of using it.
This behavior makes my debugging hard.

screen shot 2015-12-07 at 14 01 21

My PR is for that it saves history's state in Session Storage only when history's state is not empty.

Thanks!

@taion
Copy link
Contributor

taion commented Dec 7, 2015

Can you add some tests around this?

@koba04
Copy link
Contributor Author

koba04 commented Dec 7, 2015

@taion
OK, I'll work on it!

@koba04 koba04 force-pushed the reduce-savestate-data-in-session-storage branch from 387ac7a to 1d0ebe3 Compare December 9, 2015 07:56
@koba04 koba04 force-pushed the reduce-savestate-data-in-session-storage branch from 1d0ebe3 to 009cbc3 Compare December 9, 2015 08:06
@koba04
Copy link
Contributor Author

koba04 commented Dec 9, 2015

@taion
I've added some tests for DOMStateStorage.
Is this not enough?

@taion
Copy link
Contributor

taion commented Jan 1, 2016

Thanks!

taion added a commit that referenced this pull request Jan 1, 2016
…storage

Reduce saveState data in sessionStorage
@taion taion merged commit c83979a into remix-run:master Jan 1, 2016
@koba04
Copy link
Contributor Author

koba04 commented Jan 4, 2016

Thanks!

@koba04 koba04 deleted the reduce-savestate-data-in-session-storage branch January 4, 2016 01:36
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants