jotai-devtools
jotai-devtools copied to clipboard
feat(utils): cache redux extension connections to prevent duplicates
Originated from this discussion: https://github.com/pmndrs/jotai/discussions/1795#discussioncomment-5111855
Notes:
- I assumed that you accidentally deleted the husky prepare script in the package.json and therefore added it again.
- I changed the initial state value from
useAtomsDevtools
to an "empty" devtools state sicne that felt more natural to me. Let me know if you still prefer theundefined
and I will change it back. - If you would prefer me to split the PR into smaller ones to reduce the size, let me know. I feel bad for this rather big chunk but was not sure what workflows you prefer 😅