Stop infinite recursion when updating state
I need to update a store using it's previous value inside a createEffect.
I am using
to handle keyboard inputs.
i have a store
Now according to the docs , I am doing this https://primitives.solidjs.community/package/keyboard#usekeydownevent:
This is causing an infinite loop, since the value update of showChat is retriggering the createEffect.
Is there a way to read current value of UserSettingsStore.showChat in a non-reactive way, ie. prevent it from triggering infinite loop
I am using
import { useKeyDownEvent } from "@solid-primitives/keyboard"; to handle keyboard inputs.
i have a store
Now according to the docs , I am doing this https://primitives.solidjs.community/package/keyboard#usekeydownevent:
This is causing an infinite loop, since the value update of showChat is retriggering the createEffect.
Is there a way to read current value of UserSettingsStore.showChat in a non-reactive way, ie. prevent it from triggering infinite loop

