framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.06k stars 3.23k forks source link

Feature request: Improve refresh page with props #4103

Closed Simone4e closed 1 year ago

Simone4e commented 1 year ago

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