sanity-io / sanity-plugin-internationalized-array

A plugin to register array fields with a custom input component to store field values in multiple languages, queryable by using the language ID as an array `_key`.
MIT License
41 stars 10 forks source link

Address wierd behaviour in React Strict Mode #62

Closed azaxarov closed 4 months ago

azaxarov commented 4 months ago

Fixes #47

The issue is caused by running the Studio in React Strict Mode. The area of interest is the fact that effects run twice in development mode. When Strict Mode is on, React will also run one extra setup+cleanup cycle in development for every Effect.

SimeonGriggs commented 4 months ago

Legend!!