jotai-devtools icon indicating copy to clipboard operation
jotai-devtools copied to clipboard

feat(utils): cache redux extension connections to prevent duplicates

Open PrettyCoffee opened this issue 1 year ago • 7 comments

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 the undefined 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 😅

PrettyCoffee avatar Mar 07 '23 23:03 PrettyCoffee