Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function as a parameter #413

Open
janmarsicek opened this issue Apr 6, 2020 · 0 comments
Open

Function as a parameter #413

janmarsicek opened this issue Apr 6, 2020 · 0 comments

Comments

@janmarsicek
Copy link

janmarsicek commented Apr 6, 2020

Hi everyone 馃憢

Is there a possibility a function as a parameter for navigation actions (like push or replace) will ever be supported?

push(location => ({ ...location, pathname: '/courses' }));

// or

push(location => `${location.pathname}?sort=name`);

in a similar manner as <Link /> component supports it https://reacttraining.com/react-router/web/api/Link/to-function

Thanks 鉁岋笍

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

No branches or pull requests

1 participant