@traffical/svelte 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.svelte.js +2 -2
- package/package.json +1 -1
package/dist/hooks.svelte.js
CHANGED
|
@@ -79,7 +79,7 @@ export function useTraffical(options) {
|
|
|
79
79
|
// This is synchronous and provides fine-grained reactivity
|
|
80
80
|
const params = $derived.by(() => {
|
|
81
81
|
// Track override version so Svelte re-evaluates when overrides change
|
|
82
|
-
|
|
82
|
+
void ctx.overrideVersion;
|
|
83
83
|
// Priority 1: Route through client.getParams() when available (applies overrides)
|
|
84
84
|
if (ctx.client && ctx.bundle) {
|
|
85
85
|
return ctx.client.getParams({
|
|
@@ -105,7 +105,7 @@ export function useTraffical(options) {
|
|
|
105
105
|
// Derive decision reactively
|
|
106
106
|
const decision = $derived.by(() => {
|
|
107
107
|
// Track override version so Svelte re-evaluates when overrides change
|
|
108
|
-
|
|
108
|
+
void ctx.overrideVersion;
|
|
109
109
|
if (!shouldTrackDecision) {
|
|
110
110
|
return null;
|
|
111
111
|
}
|