@react-three/fiber 10.0.0-canary.c49d4cb → 10.0.0-canary.c5c1a94

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.
@@ -3249,11 +3249,6 @@ declare function flushSync<R>(fn: () => R): R;
3249
3249
  declare const context: React$1.Context<RootStore>;
3250
3250
  declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
3251
3251
 
3252
- /**
3253
- * Safely flush async effects when testing, simulating a legacy root.
3254
- * @deprecated Import from React instead. import { act } from 'react'
3255
- */
3256
- declare const act: typeof React$1.act;
3257
3252
  /**
3258
3253
  * An SSR-friendly useLayoutEffect.
3259
3254
  *
@@ -3821,9 +3816,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
3821
3816
  declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
3822
3817
  /**
3823
3818
  * Global rebuildUniforms function for HMR integration.
3824
- * Clears cached uniforms and increments _hmrVersion to trigger re-creation.
3819
+ * Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
3825
3820
  * Call this when HMR is detected to refresh all uniform creators.
3826
3821
  *
3822
+ * Resolves to the primary store so shared TSL resources rebuild on the
3823
+ * authoritative store.
3824
+ *
3827
3825
  * @param store - The R3F store (from useStore or context)
3828
3826
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3829
3827
  */
@@ -3907,9 +3905,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
3907
3905
  declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
3908
3906
  /**
3909
3907
  * Global rebuildNodes function for HMR integration.
3910
- * Clears cached nodes and increments _hmrVersion to trigger re-creation.
3908
+ * Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
3911
3909
  * Call this when HMR is detected to refresh all node creators.
3912
3910
  *
3911
+ * Resolves to the primary store so shared TSL resources rebuild on the
3912
+ * authoritative store.
3913
+ *
3913
3914
  * @param store - The R3F store (from useStore or context)
3914
3915
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3915
3916
  */
@@ -3986,9 +3987,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
3986
3987
  declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
3987
3988
  /**
3988
3989
  * Global rebuildBuffers function for HMR integration.
3989
- * Clears cached buffers and increments _hmrVersion to trigger re-creation.
3990
+ * Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
3990
3991
  * Call this when HMR is detected to refresh all buffer creators.
3991
3992
  *
3993
+ * Resolves to the primary store so shared TSL resources rebuild on the
3994
+ * authoritative store.
3995
+ *
3992
3996
  * @param store - The R3F store (from useStore or context)
3993
3997
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3994
3998
  */
@@ -4020,9 +4024,12 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
4020
4024
  declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
4021
4025
  /**
4022
4026
  * Global rebuildStorage function for HMR integration.
4023
- * Clears cached storage and increments _hmrVersion to trigger re-creation.
4027
+ * Invalidates cached storage and increments _hmrVersion to trigger re-creation.
4024
4028
  * Call this when HMR is detected to refresh all storage creators.
4025
4029
  *
4030
+ * Resolves to the primary store so shared TSL resources rebuild on the
4031
+ * authoritative store.
4032
+ *
4026
4033
  * @param store - The R3F store (from useStore or context)
4027
4034
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
4028
4035
  */
@@ -4139,5 +4146,5 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
4139
4146
  internal: WebGPUInternalState
4140
4147
  }
4141
4148
 
4142
- export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4149
+ export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4143
4150
  export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
@@ -3249,11 +3249,6 @@ declare function flushSync<R>(fn: () => R): R;
3249
3249
  declare const context: React$1.Context<RootStore>;
3250
3250
  declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
3251
3251
 
3252
- /**
3253
- * Safely flush async effects when testing, simulating a legacy root.
3254
- * @deprecated Import from React instead. import { act } from 'react'
3255
- */
3256
- declare const act: typeof React$1.act;
3257
3252
  /**
3258
3253
  * An SSR-friendly useLayoutEffect.
3259
3254
  *
@@ -3821,9 +3816,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
3821
3816
  declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
3822
3817
  /**
3823
3818
  * Global rebuildUniforms function for HMR integration.
3824
- * Clears cached uniforms and increments _hmrVersion to trigger re-creation.
3819
+ * Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
3825
3820
  * Call this when HMR is detected to refresh all uniform creators.
3826
3821
  *
3822
+ * Resolves to the primary store so shared TSL resources rebuild on the
3823
+ * authoritative store.
3824
+ *
3827
3825
  * @param store - The R3F store (from useStore or context)
3828
3826
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3829
3827
  */
@@ -3907,9 +3905,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
3907
3905
  declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
3908
3906
  /**
3909
3907
  * Global rebuildNodes function for HMR integration.
3910
- * Clears cached nodes and increments _hmrVersion to trigger re-creation.
3908
+ * Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
3911
3909
  * Call this when HMR is detected to refresh all node creators.
3912
3910
  *
3911
+ * Resolves to the primary store so shared TSL resources rebuild on the
3912
+ * authoritative store.
3913
+ *
3913
3914
  * @param store - The R3F store (from useStore or context)
3914
3915
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3915
3916
  */
@@ -3986,9 +3987,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
3986
3987
  declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
3987
3988
  /**
3988
3989
  * Global rebuildBuffers function for HMR integration.
3989
- * Clears cached buffers and increments _hmrVersion to trigger re-creation.
3990
+ * Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
3990
3991
  * Call this when HMR is detected to refresh all buffer creators.
3991
3992
  *
3993
+ * Resolves to the primary store so shared TSL resources rebuild on the
3994
+ * authoritative store.
3995
+ *
3992
3996
  * @param store - The R3F store (from useStore or context)
3993
3997
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3994
3998
  */
@@ -4020,9 +4024,12 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
4020
4024
  declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
4021
4025
  /**
4022
4026
  * Global rebuildStorage function for HMR integration.
4023
- * Clears cached storage and increments _hmrVersion to trigger re-creation.
4027
+ * Invalidates cached storage and increments _hmrVersion to trigger re-creation.
4024
4028
  * Call this when HMR is detected to refresh all storage creators.
4025
4029
  *
4030
+ * Resolves to the primary store so shared TSL resources rebuild on the
4031
+ * authoritative store.
4032
+ *
4026
4033
  * @param store - The R3F store (from useStore or context)
4027
4034
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
4028
4035
  */
@@ -4139,5 +4146,5 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
4139
4146
  internal: WebGPUInternalState
4140
4147
  }
4141
4148
 
4142
- export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4149
+ export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4143
4150
  export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };
@@ -3249,11 +3249,6 @@ declare function flushSync<R>(fn: () => R): R;
3249
3249
  declare const context: React$1.Context<RootStore>;
3250
3250
  declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
3251
3251
 
3252
- /**
3253
- * Safely flush async effects when testing, simulating a legacy root.
3254
- * @deprecated Import from React instead. import { act } from 'react'
3255
- */
3256
- declare const act: typeof React$1.act;
3257
3252
  /**
3258
3253
  * An SSR-friendly useLayoutEffect.
3259
3254
  *
@@ -3821,9 +3816,12 @@ declare function useUniforms<T extends UniformInputRecord>(uniforms: T): Uniform
3821
3816
  declare function useUniforms<T extends UniformInputRecord>(uniforms: T, scope: string): UniformsWithUtils<UniformRecord<UniformNode>>;
3822
3817
  /**
3823
3818
  * Global rebuildUniforms function for HMR integration.
3824
- * Clears cached uniforms and increments _hmrVersion to trigger re-creation.
3819
+ * Invalidates cached uniforms and increments _hmrVersion to trigger re-creation.
3825
3820
  * Call this when HMR is detected to refresh all uniform creators.
3826
3821
  *
3822
+ * Resolves to the primary store so shared TSL resources rebuild on the
3823
+ * authoritative store.
3824
+ *
3827
3825
  * @param store - The R3F store (from useStore or context)
3828
3826
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3829
3827
  */
@@ -3907,9 +3905,12 @@ declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCr
3907
3905
  declare function useNodes<T extends Record<string, TSLNodeLike>>(creator: NodeCreator<T>, scope: string): NodesWithUtils<T>;
3908
3906
  /**
3909
3907
  * Global rebuildNodes function for HMR integration.
3910
- * Clears cached nodes and increments _hmrVersion to trigger re-creation.
3908
+ * Invalidates cached nodes and increments _hmrVersion to trigger re-creation.
3911
3909
  * Call this when HMR is detected to refresh all node creators.
3912
3910
  *
3911
+ * Resolves to the primary store so shared TSL resources rebuild on the
3912
+ * authoritative store.
3913
+ *
3913
3914
  * @param store - The R3F store (from useStore or context)
3914
3915
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3915
3916
  */
@@ -3986,9 +3987,12 @@ declare function useBuffers<T extends Record<string, BufferLike>>(creator: Buffe
3986
3987
  declare function useBuffers<T extends Record<string, BufferLike>>(creator: BufferCreator<T>, scope: string): BuffersWithUtils<T>;
3987
3988
  /**
3988
3989
  * Global rebuildBuffers function for HMR integration.
3989
- * Clears cached buffers and increments _hmrVersion to trigger re-creation.
3990
+ * Invalidates cached buffers and increments _hmrVersion to trigger re-creation.
3990
3991
  * Call this when HMR is detected to refresh all buffer creators.
3991
3992
  *
3993
+ * Resolves to the primary store so shared TSL resources rebuild on the
3994
+ * authoritative store.
3995
+ *
3992
3996
  * @param store - The R3F store (from useStore or context)
3993
3997
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
3994
3998
  */
@@ -4020,9 +4024,12 @@ declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: S
4020
4024
  declare function useGPUStorage<T extends Record<string, StorageLike>>(creator: StorageCreator<T>, scope: string): StorageWithUtils<T>;
4021
4025
  /**
4022
4026
  * Global rebuildStorage function for HMR integration.
4023
- * Clears cached storage and increments _hmrVersion to trigger re-creation.
4027
+ * Invalidates cached storage and increments _hmrVersion to trigger re-creation.
4024
4028
  * Call this when HMR is detected to refresh all storage creators.
4025
4029
  *
4030
+ * Resolves to the primary store so shared TSL resources rebuild on the
4031
+ * authoritative store.
4032
+ *
4026
4033
  * @param store - The R3F store (from useStore or context)
4027
4034
  * @param scope - Optional scope to rebuild ('root' for root only, string for specific scope, undefined for all)
4028
4035
  */
@@ -4139,5 +4146,5 @@ interface WebGPURootState extends Omit<RootState, 'renderer' | 'gl' | 'internal'
4139
4146
  internal: WebGPUInternalState
4140
4147
  }
4141
4148
 
4142
- export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, act, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4149
+ export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, clearNodeScope, clearRootNodes, clearRootUniforms, clearScope, context, createEvents, createPointerEvents, createPortal, createRoot, createScopedStore, createStore, createTextureOperations, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, rebuildAllBuffers, rebuildAllNodes, rebuildAllStorage, rebuildAllUniforms, reconciler, registerPrimary, removeInteractivity, removeNodes, removeUniforms, resolve, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useBuffers, useEnvironment, useFrame, useGPUStorage, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useLocalNodes, useMutableCallback, useNodes, useRenderPipeline, useRenderTarget, useStore, useTexture, useTextures, useThree, useUniform, useUniforms, waitForPrimary };
4143
4150
  export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferCreator, BufferLike, BufferRecord, BufferStore, BuffersWithUtils, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, ClearBuffersFn, ClearNodesFn, ClearStorageFn, ClearUniformsFn, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, CreatorState, DefaultGLProps, DefaultRendererProps, Disposable, DisposeBuffersFn, DisposeOptions, DisposeStorageFn, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, WebGPUInternalState as InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, LocalNodeCreator, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeCreator, NodeProps, NodeRecord, NodesWithUtils, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, WebGPUR3FRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, RebuildBuffersFn, RebuildNodesFn, RebuildStorageFn, RebuildUniformsFn, ReconcilerRoot, RemoveBuffersFn, RemoveNodesFn, RemoveStorageFn, RemoveUniformsFn, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, WebGPURootState as RootState, RootStore, ScopedStoreType, SetBlock, Size, StorageCreator, StorageLike, StorageRecord, StorageStore, StorageWithUtils, Subscription, TSLNode, TSLNodeInput, TextureEntry, TextureInput, TextureNode, TextureOperations, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UniformCreator, UniformValue, UniformsWithUtils, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, WebGPUDefaultProps, WebGPUProps, WebGPUShadowConfig, XRManager, XRPointerConfig };