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

Recoil Toolkit DevTools - Roadmap #3

Open
salvoravida opened this issue Aug 29, 2022 · 3 comments
Open

Recoil Toolkit DevTools - Roadmap #3

salvoravida opened this issue Aug 29, 2022 · 3 comments

Comments

@salvoravida
Copy link
Owner

salvoravida commented Aug 29, 2022

Hi there, here is a preview of upcoming DevTools!

devtool-recoil-005

Let's use this space for any idea about it!

import {RecoilDevTools} from 'recoil-toolkit'

ReactDOM.render(
   <RecoilRoot>
      // enable forceSerialize if you have issues not serializable data
     <RecoilDevTools forceSerialize={false} />. 
      <App />
   </RecoilRoot>,
   document.getElementById('root'),
);
     // pass your own serializer instead of the default JSON.stringify if you have issue with circular data
     <RecoilDevTools forceSerialize={true} serializer={JSON.stringify} />. 
@salvoravida salvoravida pinned this issue Aug 29, 2022
@salvoravida
Copy link
Owner Author

@salvoravida
Copy link
Owner Author

Note using keys with dot notation will allow DevTools to render atoms as a tree
Ex: key: 'notifications.items', 'notifications.states',

@FezVrasta
Copy link

FezVrasta commented Sep 1, 2022

If I'm reading from a specific snapshot and a new one is added to the list, the new one is automatically focused. This is a bit annoying because I need to keep clicking back to the one I want to read.

Showing a label to know if a key is an atom, a selector, or just part of some nested state would be great.

Snapshots could show a timestamp to know when they have been created.

Adding an option to decide how many snapshot to keep in memory would be useful for apps that store a lot of data in them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants