Skip to content

Commit ee4c8d8

Browse files
authored
Merge pull request #3551 from pmndrs/chore/export-flush-sync
chore: export flushSync
2 parents b236b90 + 1634e6f commit ee4c8d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/fiber/src/core/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type {
2323
} from './reconciler'
2424
export { extend, reconciler } from './reconciler'
2525
export type { ReconcilerRoot, GLProps, CameraProps, RenderProps, InjectState } from './renderer'
26-
export { _roots, createRoot, unmountComponentAtNode, createPortal } from './renderer'
26+
export { _roots, createRoot, unmountComponentAtNode, createPortal, flushSync } from './renderer'
2727
export type {
2828
Subscription,
2929
Dpr,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`native Canvas should correctly mount 1`] = `"{\\"type\\":\\"view\\",\\"props\\":{\\"style\\":{\\"flex\\":1}},\\"children\\":[{\\"type\\":\\"glview\\",\\"props\\":{\\"msaaSamples\\":4,\\"style\\":{\\"position\\":\\"absolute\\",\\"left\\":0,\\"right\\":0,\\"top\\":0,\\"bottom\\":0}},\\"children\\":[]}]}"`;
3+
exports[`native Canvas should correctly mount 1`] = `"{\\"type\\":\\"view\\",\\"props\\":{\\"style\\":{\\"flex\\":1}},\\"children\\":[{\\"type\\":\\"glview\\",\\"props\\":{\\"msaaSamples\\":4,\\"style\\":{\\"position\\":\\"absolute\\",\\"left\\":0,\\"right\\":0,\\"top\\":0,\\"bottom\\":0}},\\"children\\":[]},{\\"type\\":\\"view\\",\\"props\\":{\\"style\\":{\\"position\\":\\"absolute\\",\\"left\\":0,\\"right\\":0,\\"top\\":0,\\"bottom\\":0}},\\"children\\":[]}]}"`;

packages/fiber/tests/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Array [
8181
"events",
8282
"extend",
8383
"flushGlobalEffects",
84+
"flushSync",
8485
"getRootState",
8586
"invalidate",
8687
"reconciler",

0 commit comments

Comments
 (0)