@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.
@@ -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
- renderPage();
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;