Skip to content

Commit 46c9cee

Browse files
jimmy-phantomclaude
andcommitted
chore(changeset): reframe build-config change as hygiene, not bug fix
Empirical testing in the wallet showed the build-config change does not resolve the spurious-deactivate symptom it was originally framed as fixing. The hypothesis that per-render useReactive fn identity was the trigger turned out to be wrong — Signalium's cancelDeactivate in watchSignal handles that case. The change is still correct hygiene (the lib should be transformed at build time), just not the bug fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 745c237 commit 46c9cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.changeset/lib-build-signalium-preset.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'fetchium': patch
33
---
44

5-
Apply `signaliumPreset` to the vite lib build so fetchium's own reactive callsites are transformed in the published bundle. Without it, `useQuery`'s inline `useReactive` thunk and other `reactive`/`reactiveSignal`/`relay` callsites shipped untransformed, leaking per-call closure identity into consumers and producing spurious signal-graph deactivations under React re-renders.
5+
Apply `signaliumPreset` to the vite lib build. The lib build previously only used `@vitejs/plugin-react`, so the Babel preset that wraps reactive callsites (callback, async, useReactive, promise) never ran on fetchium's own source. Consumers imported the un-transformed dist, which is technically functional but defeats the preset's intended behavior at fetchium-internal callsites (`useQuery`'s `useReactive` thunk, `relay(state => ...)`, `reactiveSignal(() => ...)`, etc.). Aligning the lib build with the test config closes this gap.

0 commit comments

Comments
 (0)