@latticexyz/react 2.0.0-main-b8a6158d → 2.0.0-main-5e744f29

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +34 -4
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- ## 2.0.0-main-b8a6158d
3
+ ## 2.0.0-main-5e744f29
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -26,9 +26,39 @@
26
26
  ### Patch Changes
27
27
 
28
28
  - Updated dependencies [[`c963b46c`](https://github.com/latticexyz/mud/commit/c963b46c7eaceebc652930936643365b8c48a021), [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9), [`a2588116`](https://github.com/latticexyz/mud/commit/a25881160cb3283e11d218be7b8a9fe38ee83062), [`5c965a91`](https://github.com/latticexyz/mud/commit/5c965a919355bf98d7ea69463890fe605bcde206), [`8d51a034`](https://github.com/latticexyz/mud/commit/8d51a03486bc20006d8cc982f798dfdfe16f169f), [`1e2ad78e`](https://github.com/latticexyz/mud/commit/1e2ad78e277b551dd1b8efb0e4438fb10441644c), [`48909d15`](https://github.com/latticexyz/mud/commit/48909d151b3dfceab128c120bc6bb77de53c456b), [`48c51b52`](https://github.com/latticexyz/mud/commit/48c51b52acab147a2ed97903c43bafa9b6769473), [`66cc35a8`](https://github.com/latticexyz/mud/commit/66cc35a8ccb21c50a1882d6c741dd045acd8bc11), [`a7b30c79`](https://github.com/latticexyz/mud/commit/a7b30c79bcc78530d2d01858de46a0fb87954fda), [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f), [`60cfd089`](https://github.com/latticexyz/mud/commit/60cfd089fc7a17b98864b631d265f36718df35a9), [`afdba793`](https://github.com/latticexyz/mud/commit/afdba793fd84abf17eef5ef59dd56fabe353c8bd), [`cc2c8da0`](https://github.com/latticexyz/mud/commit/cc2c8da000c32c02a82a1a0fd17075d11eac56c3)]:
29
- - @latticexyz/store@2.0.0-main-b8a6158d
30
- - @latticexyz/recs@2.0.0-main-b8a6158d
31
- - @latticexyz/store-cache@2.0.0-main-b8a6158d
29
+ - @latticexyz/store@2.0.0-main-5e744f29
30
+ - @latticexyz/recs@2.0.0-main-5e744f29
31
+ - @latticexyz/store-cache@2.0.0-main-5e744f29
32
+
33
+ ## 2.0.0-next.2
34
+
35
+ ### Minor Changes
36
+
37
+ - [#1284](https://github.com/latticexyz/mud/pull/1284) [`939916bc`](https://github.com/latticexyz/mud/commit/939916bcd5c9f3caf0399e9ab7689e77e6bef7ad) Thanks [@holic](https://github.com/holic)! - Adds a `usePromise` hook that returns a [native `PromiseSettledResult` object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled).
38
+
39
+ ```tsx
40
+ const promise = fetch(url);
41
+ const result = usePromise(promise);
42
+
43
+ if (result.status === "idle" || result.status === "pending") {
44
+ return <>fetching</>;
45
+ }
46
+
47
+ if (result.status === "rejected") {
48
+ return <>error fetching: {String(result.reason)}</>;
49
+ }
50
+
51
+ if (result.status === "fulfilled") {
52
+ return <>fetch status: {result.value.status}</>;
53
+ }
54
+ ```
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [[`a2588116`](https://github.com/latticexyz/mud/commit/a25881160cb3283e11d218be7b8a9fe38ee83062), [`48c51b52`](https://github.com/latticexyz/mud/commit/48c51b52acab147a2ed97903c43bafa9b6769473)]:
59
+ - @latticexyz/store@2.0.0-next.2
60
+ - @latticexyz/store-cache@2.0.0-next.2
61
+ - @latticexyz/recs@2.0.0-next.2
32
62
 
33
63
  ## 2.0.0-next.1
34
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/react",
3
- "version": "2.0.0-main-b8a6158d",
3
+ "version": "2.0.0-main-5e744f29",
4
4
  "description": "React tools for MUD client.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,9 +18,9 @@
18
18
  "mobx": "^6.7.0",
19
19
  "react": "^18.2.0",
20
20
  "rxjs": "7.5.5",
21
- "@latticexyz/recs": "2.0.0-main-b8a6158d",
22
- "@latticexyz/store": "2.0.0-main-b8a6158d",
23
- "@latticexyz/store-cache": "2.0.0-main-b8a6158d"
21
+ "@latticexyz/recs": "2.0.0-main-5e744f29",
22
+ "@latticexyz/store": "2.0.0-main-5e744f29",
23
+ "@latticexyz/store-cache": "2.0.0-main-5e744f29"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@testing-library/react-hooks": "^8.0.1",