We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25c735 commit 52d5e86Copy full SHA for 52d5e86
src/get-scope.ts
@@ -75,6 +75,11 @@ function INTERNAL_getClientScope(values?: Values) {
75
function HACK_injectValues(scope: Scope, values: Values) {
76
// @ts-expect-error this is a really hacky way to "hydrate" scope
77
Object.assign(scope.values.sidMap, values);
78
+ /**
79
+ * We should explicitly set this flag to true, because otherwise the scope will be treated as it was not created from serialized values
80
+ * => effector will not apply custom serializers to the scope
81
+ */
82
+ (scope as any).fromSerialize = true;
83
}
84
85
function HACK_updateScopeRefs(tscope: Scope, values: Values) {
0 commit comments