How pass data from index.js with path, using redux-store?
See original GitHub issueSorry if my question formulating is not right. I can use example t o describe what i want. So: `I have db table where i have got paths and some other datas, i want pass dynamically path from db to routes, For example i have got this
{path: '/ato',
action() {
return {
title: 'Test',
component: <Layout><About /> <Ato /></Layout>,
};
},
How make it something like this?
{path: 'data.path',
action() {
return {
title: 'Test',
component: <Layout><About /> <Ato props={data} /></Layout>,
};
},
},
Is there any suggestion?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Redux Essentials, Part 4: Using Redux Data
The official Redux Essentials tutorial: learn how to work with complex Redux state in React components.
Read more >React Router with Redux: Understanding navigation state
Use React Router to declaratively navigate within your React and Redux applications and maintain state across your app's navigation ...
Read more >Getting Data Out of the Redux Store with Selectors
First, we call createSelector and pass in the getProducts selector and another selector called getCurrentProductId . Then, as the last parameter, we pass...
Read more >How To Manage State in React with Redux - DigitalOcean
Redux operates according to a few concepts. First, the store is a single object with fields for each selection of data. You update...
Read more >How to pass redux state to sub routes? - Stack Overflow
In order to inject any state or action creators into the props of a React component you can use connect from react-redux which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How about this?
or with code splitting
this is the same as