Jotai
Created: 2023-05-03 17:35:59 -0700 Modified: 2023-06-20 20:54:49 -0700
Random notes
Section titled Random notesatomFamily
Section titled atomFamilyA read-only version of an atomFamily
Section titled A read-only version of an atomFamilyRead-write version of the prior example
Section titled Read-write version of the prior exampleGet the next ID for some new object
Section titled Get the next ID for some new objectTroubleshooting
Section titled TroubleshootingFast Refresh issue
Section titled Fast Refresh issueSee https://github.com/pmndrs/swc-jotai/issues/14.
As a workaround before realizing I’d forgotten to modify nextjs.config, I wrote a <JotaiUpdateDetector/> component. It just tells you when you’ve modified a file (or a dependency of a file) and should manually refresh.