fix: wrap hooks in untracked, update types

This commit is contained in:
littensy 2025-10-02 19:30:40 -07:00
parent 1657e2cb74
commit 87e7260c16
5 changed files with 40 additions and 16 deletions

View file

@ -10,7 +10,7 @@ local function useAtom<State>(getter: () -> State): () -> State
local state = Vide.source(getter())
Vide.cleanup(Charm.effect(function()
state(getter())
Charm.untracked(state :: (State) -> State, getter())
end))
return state