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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Improve refresh page with props #4103

Closed
Simone4e opened this issue Nov 24, 2022 · 0 comments
Closed

Feature request: Improve refresh page with props #4103

Simone4e opened this issue Nov 24, 2022 · 0 comments

Comments

@Simone4e
Copy link

Is your feature request related to a problem? Please describe.
If I have a page that loads together with some "props" (example: page to add a sub-customer that needs the id/name of the main customer) there should be the possibility to refresh the page bringing the "props"

Describe the solution you'd like
It could simply add a parameter to the already existing example command:

router.refreshPage({
        props: {
            id: 1
        }
    });

Describe alternatives you've considered
At the moment I have created a function to refresh the page with props:

app.refreshPageWithProps = function (props) {
    app.views.main.router.navigate(app.views.main.router.currentRoute.url, { 
        props: props,
        reloadCurrent: true
    });
};
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