You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type: AnyNoContext;// TODO should be the type of the entity
6
+
entities: Map<string,Entity<AnyNoContext>>;// holds all entities of this type
7
+
queries: Map<
8
+
string,// instead of serializedQueryKey as string we could also have the actual params
9
+
{
10
+
data: Array<Entity<AnyNoContext>>;// holds the decoded entities of this query and must be a stable reference and use the same reference for the `entities` array
11
+
listeners: Array<()=>void>;// listeners to this query
12
+
}
13
+
>;
14
+
};
2
15
3
16
/*
4
17
/*
@@ -13,18 +26,7 @@ import type { Any, AnyNoContext, Entity } from './types.js';
13
26
*/
14
27
typeDecodedEntitiesCache=Map<
15
28
string,// type name
16
-
{
17
-
decoder: (data: unknown)=>unknown;
18
-
type: Any;// TODO should be the type of the entity
19
-
entities: Map<string,Entity<AnyNoContext>>;// holds all entities of this type
20
-
queries: Map<
21
-
string,// instead of serializedQueryKey as string we could also have the actual params
22
-
{
23
-
data: Array<Entity<AnyNoContext>>;// holds the decoded entities of this query and must be a stable reference and use the same reference for the `entities` array
24
-
listeners: Array<()=>void>;// listeners to this query
0 commit comments