Chris P Bacon
Mixing async and signals
hmm. I get the same flickering when using
createResource
. And also not sure how .latest
is supposed to help here. I still do want it to be a signal.
It seems that the eventual consuming 'scope' is still triggered by the underlying refetch
even though the signal's output itself is clean. Is this perhaps where a well-placed untrack
might help?17 replies
useContext(someContext) returns undefined if the component is inside fallback prop for <Show ... />
<Show />
's fallback expects an JSX.Element, so you want to "call" the component instead of passing it along. I am not sure if this would fix your issue, but hopefully it helps.
so turn
into 2 replies
Nested Stores not tracking with `trackDeep`/`trackStore`
I am not familiar with
trackStore
, but for my own case I just dumbly iterated the leafs of the tree so that everything is tracked in that scope. I suspect this is not how you are supposed to do it, but at least it works 😛
https://github.com/chris-kruining/calque/blob/dc30ebb35e36ea34ea7e368b4f3b5636aa1c0881/src/features/file/grid.tsx#L492 replies