Skip to content

Commit

Permalink
Fix bug where state triggered based rerenders would not be passed the…
Browse files Browse the repository at this point in the history
… current route.
  • Loading branch information
joeyuscca committed Jun 20, 2024
1 parent e9bc50e commit f265428
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"components"
],
"license": "MIT",
"version": "3.0.3",
"version": "3.0.4",
"description": "Light-weight framework designed to embrace core competencies",
"private": false,
"main": "./module.js",
Expand Down
2 changes: 1 addition & 1 deletion src/core/decorators/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function definePropertyForStateInStore(target: Component, key: string, storeType

if (!component[subKey]) {
const subId = store.ObservableAt(key).Subscribe(() => {
component.ReRender(component.App.Router.CurrentRoute);
component.ReRender(component.App.Router.Route.CurrentIssue);
});
component[subKey] = subId;
}
Expand Down
2 changes: 0 additions & 2 deletions src/core/services/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Route } from './route';
export interface IRouter {
Route: AsyncObservable<Route>;
RouteHandled: string;
CurrentRoute?: Route;
RouteChangeScrollingEnabled: boolean;
UseClientRouting(): void;
RouteTo(href: string, push?: boolean): Promise<Route>;
Expand All @@ -29,7 +28,6 @@ export class Router implements IRouter {

public Route = new AsyncObservable<Route>();
public RouteHandled = Strings.Empty;
public CurrentRoute?: Route;
public RouteChangeScrollingEnabled = true;

private constructor(
Expand Down

0 comments on commit f265428

Please sign in to comment.