-
Notifications
You must be signed in to change notification settings - Fork 9
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
added session storage saving #25
base: master
Are you sure you want to change the base?
Conversation
I want to test how this interacts with the loading-via-URL feature before we merge it into the main branch. e.g. what happens with something like: (for that matter, what should happen?) |
Here's what I think should happen:
^ if this model of desired behavior is good then I can try and implement it The other option is to go with the default behavior with the current PR, because session storage simply doesn't work with the URL loading. Here's a video of me testing it: https://drive.google.com/file/d/1QPUcKabTAweCadsJtfMtLsuiI87M4GKm/view?usp=sharing As you can see, it loads the code from the URL on refresh and does not track user changes. This is the current behavior without my changes anyway |
Summary of changes:
|
Looks pretty good to me! Two minor comments:
|
Thanks for the comments! |
Thanks! Unfortunately, I still have some problems in Firefox. It looks like the visualization doesn't refresh after loading new code because of some weird
I'm not sure what's going on. But if everything works for you in Chrome, it seems reasonable to merge the changes with a TODO to investigate what's happening in Firefox |
I want to fix this issue but I was having some trouble reproducing locally on Firefox. So far no problems with chrome and safari. The error could be racey (?). If everything looks fine in chrome for you as well, let's merge and put the firefox issue in a TODO/issue? |
I don't have chrome on my laptop, so I tried it on a different computer and everything worked fine there even in firefox. Something weird must be going on with my laptop in particular. Merging sounds good to me. I can try to look into what's happening on my computer later |
Summary of changes
Testing
https://drive.google.com/file/d/1LJi7tSLezhvhadT4drfxtZX6kq7HZlgC/view?usp=sharing
^ video of manual testing
issues assoicated