paintcannon-react 0.0.24 → 0.0.26

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/README.md CHANGED
@@ -245,4 +245,5 @@ both supported:
245
245
  ## Core Runtime
246
246
 
247
247
  This package depends on `paintcannon`, which provides the NAPI-RS native
248
- renderer and DOM-like API.
248
+ renderer and DOM-like API. React commits are sent as PaintCannon transactions;
249
+ the Rust-owned render loop presents dirty state at the configured `fps`.
@@ -21,9 +21,6 @@ const reconciler = createReconciler({
21
21
  },
22
22
  resetAfterCommit(container) {
23
23
  container.paintCannon.commitTransaction();
24
- if (container.presentCommits) {
25
- container.paintCannon.render();
26
- }
27
24
  },
28
25
  preparePortalMount: () => null,
29
26
  clearContainer(container) {
@@ -152,7 +149,6 @@ export function createRoot(options = {}) {
152
149
  paintCannon,
153
150
  root: container,
154
151
  children: new Set(),
155
- presentCommits: true,
156
152
  };
157
153
  const animationScheduler = new AnimationScheduler(paintCannon);
158
154
  const reactRoot = reconciler.createContainer(rootContainer, 0, null, false, null, "", reportReactError, reportReactError, reportReactError, () => { });
@@ -177,7 +173,7 @@ export function createRoot(options = {}) {
177
173
  return;
178
174
  }
179
175
  exited = true;
180
- rootContainer.presentCommits = false;
176
+ paintCannon.renderSync();
181
177
  reconciler.updateContainer(null, reactRoot, null, () => {
182
178
  animationScheduler.stop();
183
179
  paintCannon.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paintcannon-react",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "scheduler": "^0.25.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "paintcannon": "^0.0.24",
39
+ "paintcannon": "^0.0.26",
40
40
  "react": "^19.0.0"
41
41
  },
42
42
  "devDependencies": {