Skip to content

Commit 25ac4a4

Browse files
committed
chore: remove subscribers from context
1 parent 7d2d71a commit 25ac4a4

File tree

2 files changed

+67
-2
lines changed

2 files changed

+67
-2
lines changed

docs/.eslintrc-auto-import.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"globals": {
3+
"Component": true,
4+
"ComponentPublicInstance": true,
5+
"ComputedRef": true,
6+
"EffectScope": true,
7+
"InjectionKey": true,
8+
"PropType": true,
9+
"Ref": true,
10+
"VNode": true,
11+
"WritableComputedRef": true,
12+
"computed": true,
13+
"createApp": true,
14+
"customRef": true,
15+
"defineAsyncComponent": true,
16+
"defineComponent": true,
17+
"effectScope": true,
18+
"getCurrentInstance": true,
19+
"getCurrentScope": true,
20+
"h": true,
21+
"inject": true,
22+
"isProxy": true,
23+
"isReactive": true,
24+
"isReadonly": true,
25+
"isRef": true,
26+
"markRaw": true,
27+
"nextTick": true,
28+
"onActivated": true,
29+
"onBeforeMount": true,
30+
"onBeforeUnmount": true,
31+
"onBeforeUpdate": true,
32+
"onDeactivated": true,
33+
"onErrorCaptured": true,
34+
"onMounted": true,
35+
"onRenderTracked": true,
36+
"onRenderTriggered": true,
37+
"onScopeDispose": true,
38+
"onServerPrefetch": true,
39+
"onUnmounted": true,
40+
"onUpdated": true,
41+
"provide": true,
42+
"reactive": true,
43+
"readonly": true,
44+
"ref": true,
45+
"resolveComponent": true,
46+
"shallowReactive": true,
47+
"shallowReadonly": true,
48+
"shallowRef": true,
49+
"toRaw": true,
50+
"toRef": true,
51+
"toRefs": true,
52+
"toValue": true,
53+
"triggerRef": true,
54+
"unref": true,
55+
"useAttrs": true,
56+
"useCssModule": true,
57+
"useCssVars": true,
58+
"useSlots": true,
59+
"watch": true,
60+
"watchEffect": true,
61+
"watchPostEffect": true,
62+
"watchSyncEffect": true,
63+
"ExtractDefaultPropTypes": true,
64+
"ExtractPropTypes": true,
65+
"ExtractPublicPropTypes": true
66+
}
67+
}

src/composables/useTresContextProvider/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export interface TresContext {
6161
perf: PerformanceState
6262
render: RenderState
6363
// Loop
64-
subscribers: Map<number, Fn[]>
6564
loop: RendererLoop
6665
/**
6766
* Invalidates the current frame when renderMode === 'on-demand'
@@ -182,7 +181,6 @@ export function useTresContextProvider({
182181
registerCamera,
183182
setCameraActive,
184183
deregisterCamera,
185-
subscribers: new Map(),
186184
loop: createRenderLoop(),
187185
}
188186

0 commit comments

Comments
 (0)