@ethlete/core 4.29.4 → 4.29.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ethlete/core
2
2
 
3
+ ## 4.29.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0ffe4f9`](https://github.com/ethlete-io/ethdk/commit/0ffe4f9b629ab47e0632fa1fdb8eb99a6552ca4b) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix router state not getting updated on initial load once the router is ready
8
+
3
9
  ## 4.29.4
4
10
 
5
11
  ### Patch Changes
@@ -2300,14 +2300,14 @@ const createRouterState = (router) => {
2300
2300
  * Inject the complete router state. This includes the current route data, path params, query params, title and fragment.
2301
2301
  */
2302
2302
  const injectRouterState = () => {
2303
- const url = injectUrl();
2303
+ const event = injectRouterEvent();
2304
2304
  const router = inject(Router);
2305
2305
  const routerState = signal(createRouterState(router), ...(ngDevMode ? [{ debugName: "routerState" }] : []));
2306
2306
  effect(() => {
2307
- url();
2307
+ event();
2308
2308
  untracked(() => routerState.set(createRouterState(router)));
2309
2309
  });
2310
- return routerState.asReadonly();
2310
+ return computed(() => routerState(), { equal });
2311
2311
  };
2312
2312
  /** Inject a signal containing the current route fragment (the part after the # inside the url if present) */
2313
2313
  const injectFragment = (config) => {