Open
Description
Your initial "actual" example is a great way to write it -- keeping the PS bits effectful and running
unsafePerformEffect
once at the top level where next.js can pick it up. A component library could similarly expose both the effectful version (which might support a generic type constrained with type classes) alongside a fully applied version which chooses a type for some common use case.
Btw, this is explained briefly in the docs, but if that was confusing or not enough info let me know.
Originally posted by @spicydonuts in #12 (comment)
Metadata
Metadata
Assignees
Labels
No labels