Skip to content

Commit

Permalink
fix(devtools): root store access #732
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 27, 2021
1 parent 150fdfc commit 90d2c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pinia/src/devtools/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export function registerPiniaDevtools(app: App, pinia: Pinia) {
path.unshift('$state')
}
} else {
path.unshift('state', 'value')
// Root access, we can omit the `.value` because the devtools API does it for us
path.unshift('state')
}
isTimelineActive = false
payload.set(inspectedStore, path, payload.state.value)
Expand Down

0 comments on commit 90d2c35

Please sign in to comment.