Switching from one package to another should not persist options
See original GitHub issueCategory Plugins
Component dev-tools
Describe the bug
While trying to look at the field-date I found that pulling up the test page does not display a toolbox with the field-date in it. I think this has to do with:
createPlayground(document.getElementById('root'), createWorkspace, defaultOptions);
To Reproduce
Steps to reproduce the behavior:
- Go to field date
- run
npm run start
- Notice the toolbox is the default toolbox
Expected behavior A toolbox with the field-date.
Screenshots
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Save package settings between sessions - r - Stack Overflow
To my suprise try(..., silent=TRUE) gives a warning on startup if ~/.Roptions.Rdata does not exist, which is why I used tryCatch instead.
Read more >Configure database persistence | Redis Documentation Center
While the persistence model can be changed dynamically, just know that it can take time for your database to switch from one persistence...
Read more >Persist state with Redux Persist using Redux Toolkit in React
We can customize a part of our state to persist by using the blacklist and whitelist properties of the config object passed to...
Read more >LiveCD/Persistence - Community Help Wiki
The first simple thing you can do to verify that persistence is working is install a few applications and change some environment settings...
Read more >Persistence settings | Citrix ADC 13.1
If the selected service is in an Out Of Service state, it continues to serve the outstanding requests but does not accept new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that makes a case for having project specific options. ie: some way to tell that you’ve moved from running the playground from
field-slider
tofield-date
, and I agree those two shouldn’t share options.As for what options are project dependent, I think it depends on the plugin you’re building. eg: if you’re building a theme plugin, then the theme is going to be project dependent, and say perhaps you were building something that is RTL specific, then the rtl flag would be.
I think we can pass the current plugin name to the playground through the URL loaded, and have it save options under that domain.
It seems to me that a toolbox is project dependent while most other options are not. When I run a different project I expect whatever toolbox that project is created with to be displayed. Having to hit reset in this case doesn’t seem very intuitive.