Skip to content

Feature request: Improve refresh page with props #4103

@Simone4e

Description

@Simone4e

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
    });
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions