@@ -8,12 +8,7 @@ import { type DomContainer } from '../client/dom-container';
8
8
import type { VNode } from '../client/types' ;
9
9
import { vnode_getNode , vnode_isVNode , vnode_locate , vnode_toString } from '../client/vnode' ;
10
10
import { _EFFECT_BACK_REF , NEEDS_COMPUTATION } from '../signal/flags' ;
11
- import {
12
- SerializerSignalImpl ,
13
- WrappedSignal ,
14
- isSerializerObj ,
15
- type SerializerArg ,
16
- } from '../signal/signal' ;
11
+ import { SerializerSignalImpl , isSerializerObj , type SerializerArg } from '../signal/signal' ;
17
12
import {
18
13
getOrCreateStore ,
19
14
getStoreHandler ,
@@ -59,6 +54,7 @@ import {
59
54
import { SubscriptionData , type NodePropData } from '../signal/subscription-data' ;
60
55
import { SignalImpl } from '../signal/impl/signal-impl' ;
61
56
import { ComputedSignalImpl } from '../signal/impl/computed-signal-impl' ;
57
+ import { WrappedSignalImpl } from '../signal/impl/wrapped-signal-impl' ;
62
58
63
59
const deserializedProxyMap = new WeakMap < object , unknown [ ] > ( ) ;
64
60
@@ -271,7 +267,7 @@ const inflate = (
271
267
break ;
272
268
}
273
269
case TypeIds . WrappedSignal : {
274
- const signal = target as WrappedSignal < unknown > ;
270
+ const signal = target as WrappedSignalImpl < unknown > ;
275
271
const d = data as [
276
272
number ,
277
273
unknown [ ] ,
@@ -491,7 +487,7 @@ const allocate = (container: DeserializeContainer, typeId: number, value: unknow
491
487
case TypeIds . Signal :
492
488
return new SignalImpl ( container as any , 0 ) ;
493
489
case TypeIds . WrappedSignal :
494
- return new WrappedSignal ( container as any , null ! , null ! , null ! ) ;
490
+ return new WrappedSignalImpl ( container as any , null ! , null ! , null ! ) ;
495
491
case TypeIds . ComputedSignal :
496
492
return new ComputedSignalImpl ( container as any , null ! ) ;
497
493
case TypeIds . SerializerSignal :
@@ -876,7 +872,7 @@ export const createSerializationContext = (
876
872
discoveredValues . push ( obj . $effects$ ) ;
877
873
}
878
874
// WrappedSignal uses syncQrl which has no captured refs
879
- if ( obj instanceof WrappedSignal ) {
875
+ if ( obj instanceof WrappedSignalImpl ) {
880
876
discoverEffectBackRefs ( obj [ _EFFECT_BACK_REF ] , discoveredValues ) ;
881
877
if ( obj . $args$ ) {
882
878
discoveredValues . push ( ...obj . $args$ ) ;
@@ -1235,7 +1231,7 @@ function serialize(serializationContext: SerializationContext): void {
1235
1231
? NEEDS_COMPUTATION
1236
1232
: value . $untrackedValue$ ;
1237
1233
1238
- if ( value instanceof WrappedSignal ) {
1234
+ if ( value instanceof WrappedSignalImpl ) {
1239
1235
output ( TypeIds . WrappedSignal , [
1240
1236
...serializeWrappingFn ( serializationContext , value ) ,
1241
1237
filterEffectBackRefs ( value [ _EFFECT_BACK_REF ] ) ,
@@ -1380,7 +1376,7 @@ function filterEffectBackRefs(effectBackRef: Map<string, EffectSubscription> | n
1380
1376
1381
1377
function serializeWrappingFn (
1382
1378
serializationContext : SerializationContext ,
1383
- value : WrappedSignal < any >
1379
+ value : WrappedSignalImpl < any >
1384
1380
) {
1385
1381
// if value is an object then we need to wrap this in ()
1386
1382
if ( value . $funcStr$ && value . $funcStr$ [ 0 ] === '{' ) {
0 commit comments