Adding parameters when using navigate

Hi,

Is there a way to pass information when using navigate? For example:

this.$f7router.navigate("/user-homepage/",
options{
// pass some parameters or any information here
});

I am using React.

I appreciate any help.

You can pass props to target route component:

this.$f7router.navigate("/user-homepage/",
props: {
  foo: 'bar',
});

And it will be available as component props

1 Like