@lynx-js/react 0.111.0 → 0.111.1
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.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/refresh/.turbo/turbo-build.log +7 -3
- package/refresh/dist/index.js +223 -284
- package/refresh/package.json +3 -4
- package/refresh/rslib.config.ts +24 -0
- package/testing-library/dist/env/vitest.js +6 -3
- package/testing-library/dist/pure.js +3 -1
- package/testing-library/dist/vitest-global-setup.js +2 -2
- package/transform/dist/wasm.cjs +1 -1
- package/worklet-runtime/dist/dev.js +403 -506
- package/worklet-runtime/dist/main.js +1 -517
- package/worklet-runtime/lib/workletRuntime.js +5 -5
- package/worklet-runtime/lib/workletRuntime.js.map +1 -1
|
@@ -14588,7 +14588,9 @@ function pure_render(ui, { queries, wrapper: WrapperComponent, enableMainThread
|
|
|
14588
14588
|
const compBackgroundThread = cloneElement(comp);
|
|
14589
14589
|
globalThis.lynxTestingEnv.switchToMainThread();
|
|
14590
14590
|
__root.__jsx = enableMainThread ? compMainThread : null;
|
|
14591
|
-
|
|
14591
|
+
act(()=>{
|
|
14592
|
+
renderPage();
|
|
14593
|
+
});
|
|
14592
14594
|
if (enableBackgroundThread) {
|
|
14593
14595
|
globalThis.lynxTestingEnv.switchToBackgroundThread();
|
|
14594
14596
|
act(()=>{
|
|
@@ -28,7 +28,7 @@ globalThis.onInitWorkletRuntime = ()=>{
|
|
|
28
28
|
return true;
|
|
29
29
|
};
|
|
30
30
|
globalThis.onInjectMainThreadGlobals = (target)=>{
|
|
31
|
-
if (onInjectMainThreadGlobals) onInjectMainThreadGlobals();
|
|
31
|
+
if (onInjectMainThreadGlobals) onInjectMainThreadGlobals(target);
|
|
32
32
|
if (process.env.DEBUG) console.log('onInjectMainThreadGlobals');
|
|
33
33
|
snapshotInstanceManager.clear();
|
|
34
34
|
snapshotInstanceManager.nextId = 0;
|
|
@@ -56,7 +56,7 @@ globalThis.onInjectMainThreadGlobals = (target)=>{
|
|
|
56
56
|
target.globalPipelineOptions = void 0;
|
|
57
57
|
};
|
|
58
58
|
globalThis.onInjectBackgroundThreadGlobals = (target)=>{
|
|
59
|
-
if (onInjectBackgroundThreadGlobals) onInjectBackgroundThreadGlobals();
|
|
59
|
+
if (onInjectBackgroundThreadGlobals) onInjectBackgroundThreadGlobals(target);
|
|
60
60
|
if (process.env.DEBUG) console.log('onInjectBackgroundThreadGlobals');
|
|
61
61
|
backgroundSnapshotInstanceManager.clear();
|
|
62
62
|
backgroundSnapshotInstanceManager.nextId = 0;
|