question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switching from one package to another should not persist options

See original GitHub issue

Category 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:

  1. Go to field date
  2. run npm run start
  3. Notice the toolbox is the default toolbox

Expected behavior A toolbox with the field-date.

Screenshots

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samelhusseinicommented, Sep 9, 2020

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 to field-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.

0reactions
alschmiedtcommented, Sep 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found