@flemo/react 1.5.6 → 1.5.7

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/dist/index.mjs +5 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -160,7 +160,9 @@ function Me({ children: e, initPath: t = "/", defaultTransitionName: r = "cupert
160
160
  browserDriver: E,
161
161
  hostedScope: C
162
162
  }));
163
- M.transition.setState({ defaultTransitionName: r }), Te(i, c, l), o(() => {
163
+ M.transition.setState({ defaultTransitionName: r }), o(() => (M.life.alive = !0, () => {
164
+ M.life.alive = !1;
165
+ }), [M]), Te(i, c, l), o(() => {
164
166
  if (g || de()) return;
165
167
  let e = h && !w && E ? E.readState() == null : !1;
166
168
  se(w ? null : y, r, M.history.getState().histories[0]?.params ?? {}), h && !w && E && e && E.readPathname() !== A && E.replaceState(E.readState(), A);
@@ -672,7 +674,8 @@ function Ke({ children: e }) {
672
674
  screen: A(),
673
675
  driver: b(),
674
676
  markSelfInduced: P,
675
- consume: v
677
+ consume: v,
678
+ life: { alive: !0 }
676
679
  }));
677
680
  return /* @__PURE__ */ R(z.Provider, {
678
681
  value: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemo/react",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "React bindings for flemo: Router, Route, Screen, and the screen-transition runtime.",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "path-to-regexp": "^8.4.2",
38
38
  "zustand": "^5.0.14",
39
- "@flemo/core": "1.10.1"
39
+ "@flemo/core": "1.11.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@testing-library/jest-dom": "^6.9.1",