Skip to content

Commit

Permalink
feat(routing): appPath in state
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 24, 2022
1 parent c53e5f7 commit d346645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-wombats-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/shell-routing": patch
---

Make `appPath` part of the state
1 change: 1 addition & 0 deletions packages/routing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const routing = ({ appPath = '/', pathPrefix = '' }: Options = {}) => {
return {
model: {
state: {
appPath,
resource: window.location.href,
},
reducers,
Expand Down

0 comments on commit d346645

Please sign in to comment.