@effect/atom-react 4.0.0-beta.71 → 4.0.0-beta.72
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/dist/ReactHydration.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export interface HydrationBoundaryProps {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Provides a React hydration boundary that loads dehydrated Atom values into
|
|
16
|
+
* the current Atom registry.
|
|
17
17
|
*
|
|
18
18
|
* **When to use**
|
|
19
19
|
*
|
package/dist/ReactHydration.js
CHANGED
|
@@ -28,8 +28,8 @@ import * as Hydration from "effect/unstable/reactivity/Hydration";
|
|
|
28
28
|
import * as React from "react";
|
|
29
29
|
import { RegistryContext } from "./RegistryContext.js";
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* Provides a React hydration boundary that loads dehydrated Atom values into
|
|
32
|
+
* the current Atom registry.
|
|
33
33
|
*
|
|
34
34
|
* **When to use**
|
|
35
35
|
*
|
|
@@ -10,7 +10,7 @@ import * as React from "react";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function scheduleTask(f: () => void): () => void;
|
|
12
12
|
/**
|
|
13
|
-
* React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
13
|
+
* Provides a React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
14
14
|
* hydration helpers, defaulting to a standalone registry when no provider is
|
|
15
15
|
* present.
|
|
16
16
|
*
|
package/dist/RegistryContext.js
CHANGED
|
@@ -40,7 +40,7 @@ export function scheduleTask(f) {
|
|
|
40
40
|
return () => Scheduler.unstable_cancelCallback(node);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
43
|
+
* Provides a React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
44
44
|
* hydration helpers, defaulting to a standalone registry when no provider is
|
|
45
45
|
* present.
|
|
46
46
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/atom-react",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.72",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React bindings for the Effect Atom modules",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.2.4",
|
|
47
47
|
"scheduler": "*",
|
|
48
|
-
"effect": "^4.0.0-beta.
|
|
48
|
+
"effect": "^4.0.0-beta.72"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-dom": "19.2.6",
|
|
60
60
|
"react-error-boundary": "^6.1.1",
|
|
61
61
|
"scheduler": "^0.27.0",
|
|
62
|
-
"effect": "^4.0.0-beta.
|
|
62
|
+
"effect": "^4.0.0-beta.72"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsc -b tsconfig.json && pnpm babel",
|
package/src/ReactHydration.ts
CHANGED
|
@@ -40,8 +40,8 @@ export interface HydrationBoundaryProps {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* Provides a React hydration boundary that loads dehydrated Atom values into
|
|
44
|
+
* the current Atom registry.
|
|
45
45
|
*
|
|
46
46
|
* **When to use**
|
|
47
47
|
*
|
package/src/RegistryContext.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function scheduleTask(f: () => void): () => void {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
46
|
+
* Provides a React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
47
47
|
* hydration helpers, defaulting to a standalone registry when no provider is
|
|
48
48
|
* present.
|
|
49
49
|
*
|