pmndrs / swc-jotai

MIT License
89 stars 14 forks source link

atomWithCache debugLabel issue #19

Open ajdiyassin opened 8 months ago

ajdiyassin commented 8 months ago

Summary

I'm getting this error when I use atomWithCache in NextJs 14

Error: Cannot set properties of undefined (setting 'debugLabel')

NextJs setup

experimental: {
    swcPlugins: [
      ['@swc-jotai/react-refresh', { }],
      ['@swc-jotai/debug-label', {}],
    ],
  },

Link to reproduction

Check List

Please do not ask questions in issues.

Please include a minimal reproduction.

Tiscs commented 7 months ago

Also when subscribe value by useAtomValue(selectAtom(...)).

Thisen commented 2 months ago

Hi there!

Thanks for reporting.

Can you provide a reproduction?