@reckona/mreact-dom 0.0.135 → 0.0.137
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 +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ const html = renderToString(<App />);
|
|
|
27
27
|
- `@reckona/mreact-dom/server` exports string, readable stream, and pipeable stream rendering helpers.
|
|
28
28
|
- `@reckona/mreact-dom/test-utils` exports `act()` for React Testing Library compatibility.
|
|
29
29
|
|
|
30
|
+
## flushSync
|
|
31
|
+
|
|
32
|
+
`flushSync(callback)` runs the callback and synchronously commits pending mreact work before returning: compat hook state updates and reactive-core cell/computed updates, including the cell-driven DOM bindings compiled components use.
|
|
33
|
+
|
|
34
|
+
Cell updates flush in a microtask by default, which already lands before a `document.startViewTransition()` snapshot capture, so `flushSync` is not required there; reach for it when later code in the same task must observe the committed DOM, such as layout measurement right after an update.
|
|
35
|
+
|
|
30
36
|
## Notes
|
|
31
37
|
|
|
32
38
|
This package targets React DOM compatibility. App-router SSR and deployment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reckona/mreact-dom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.137",
|
|
4
4
|
"description": "React DOM-compatible entrypoints for mreact.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dom",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@reckona/mreact-compat": "0.0.
|
|
67
|
+
"@reckona/mreact-compat": "0.0.137"
|
|
68
68
|
}
|
|
69
69
|
}
|