I understand Require modules are meant to load once, lets say we have a Single Page application with hash based navigation, when we navigate to a previously loaded page the code is not re-run as it has already been loaded once which is what we want.
My question is what are the best practices to reload data , lets say we have some data in local storage that changes,how could we run a function to update this data and/or what would be the best way to update this data in a previously loaded module?
Aucun commentaire:
Enregistrer un commentaire