New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to navigate backwards? #10
Comments
How to use |
I badly need On Monday, August 22, 2016, Johannes Lumpe notifications@github.com wrote:
Best Regards, |
I wonder if this'll work. Modify export const executeTransition = history => transitionData => {
if (transitionData) {
// const method = transitionData.replace ? 'replace' : 'push';
const method = transitionData.method || (transitionData.replace ? 'replace' : 'push');
history[method](transitionData);
}
}; Example action: export default {
goPrevious() {
return {
type: PAGE_PREV,
payload: {
page: 23
},
meta: {
transition: (prevState, nextState, action) => ({ method: 'goBack' }),
},
};
},
} |
A |
How to use standard navigation actions of react-router, i.e.
goBack()
,replace()
etc?The text was updated successfully, but these errors were encountered: