Comments (4)
OK thank you
from connected-next-router.
@xaphod if you are in a reducer, you would only have access to the state of that reducer, not the whole store state.
It seems like you would have to extract dynamic1
and dynamic2
before it gets to the reducer. That way you can add them to the action data and access it in the reducer. There are multiple ways of doing this.
Let me know if that's possible
from connected-next-router.
Thanks for the quick reply.
This project isn't using redux/actions to navigate, so i'm not sure where/when we would do that.
from connected-next-router.
@xaphod It would have to be done where you dispatch the action. Alternatively, you could handle the LOCATION_CHANGE
action the library uses in that reducer, and extract dynamic1
and dynamic2
from the payload's location object.
from connected-next-router.
Related Issues (20)
- Why not just use Router.push? HOT 1
- Integration in Saga HOT 8
- Doesn't support NextJS 9.0.5 HOT 1
- Example without `next-redux-wrapper` HOT 6
- Requests with query parameters are being redirected to / HOT 4
- Option to change action types names HOT 1
- State updates after the first useEffect(() => {}, []) called. HOT 3
- Feature request: createMatchSelector to replace connected-react-router HOT 8
- my push method from next/router not working properly as expected after wrapping my app with ConnectedRouter HOT 12
- react-router migration question HOT 2
- search.replace is not a function HOT 3
- Doesn't consider basePath? HOT 3
- Redux-undo?
- Redux Toolkit HOT 3
- Export a NextRouterState type for TypeScript?
- Expose a LocationChangeAction type for TypeScript? HOT 3
- doesn't work with React 18+ HOT 3
- Redux Persist
- peer dependency issue with react-redux@8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connected-next-router.