Skip to content

Commit 5b34140

Browse files
committed
clearSingleton for other renderers
1 parent c3ed935 commit 5b34140

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react-reconciler/src/ReactFiberHostConfigWithNoSingletons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function shim(...args: any) {
2121
// Resources (when unsupported)
2222
export const supportsSingletons = false;
2323
export const resolveSingletonInstance = shim;
24+
export const clearSingleton = shim;
2425
export const acquireSingletonInstance = shim;
2526
export const releaseSingletonInstance = shim;
2627
export const isHostSingletonType = shim;

packages/react-reconciler/src/forks/ReactFiberHostConfig.custom.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export const releaseResource = $$$hostConfig.releaseResource;
206206
// -------------------
207207
export const supportsSingletons = $$$hostConfig.supportsSingletons;
208208
export const resolveSingletonInstance = $$$hostConfig.resolveSingletonInstance;
209+
export const clearSingleton = $$$hostConfig.clearSingleton;
209210
export const acquireSingletonInstance = $$$hostConfig.acquireSingletonInstance;
210211
export const releaseSingletonInstance = $$$hostConfig.releaseSingletonInstance;
211212
export const isHostSingletonType = $$$hostConfig.isHostSingletonType;

0 commit comments

Comments
 (0)