Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

How to access params.data in react component or Redux store #368

Closed
ghost opened this issue Oct 8, 2016 · 1 comment
Closed

How to access params.data in react component or Redux store #368

ghost opened this issue Oct 8, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 8, 2016

is there a way to access params.data in react component or redux store?
or pass it through state from <Provider> to components or store?

@ghost ghost changed the title How to access params.data in react component How to access params.data in react component or Redux store Oct 8, 2016
@SteveSandersonMS
Copy link
Member

You receive params.data in your boot-server.ts, and can pass it from there to the rest of your app in whatever way is most convenient for you. For example, in your configureStore method, you could use the params.data values as part of the store's initial state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant