garth
Signal Factories and eslint warnings
I've created a factory for creating signals from a yjs document. Everything seems work ok, but the linter is giving warnings. Is the linter correct or is it a false positive due to the factory?
The last line gives the following lint warning:
The reactive variable 'provider' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored.
4 replies