You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@preact/signals v2 requires to add "import "@preact/signals/auto";" at top-level (this is done in Modular form's playground for React, which uses @preact/signals-react v2.2).
However, when following the installation guide, @preact/signals v2 is installed but there's no mention of the need to add this line of code. As a result, signals don't work properly.
We should either install @preact/signals v1 explicitly (through npm install @preact/signals-react@1"), or mention the required extra code.
The text was updated successfully, but these errors were encountered:
We use import "@preact/signals/auto"; as a quick fix in our playground. If I understand correctly, it is usually recommended to use Preact's Bable plugin instead.
@preact/signals v2 requires to add "import "@preact/signals/auto";" at top-level (this is done in Modular form's playground for React, which uses @preact/signals-react v2.2).
However, when following the installation guide, @preact/signals v2 is installed but there's no mention of the need to add this line of code. As a result, signals don't work properly.
We should either install @preact/signals v1 explicitly (through npm install @preact/signals-react@1"), or mention the required extra code.
The text was updated successfully, but these errors were encountered: