Page state is data that is associated with a particular page in a web application. It is not saved when you refresh the page, so you will lose any filters or other changes that you made.
To create a page state:
Enter a name for the state.
In the "Default Value" (Optional) field, enter the default value that you want to use for the parameter.
Click the "Create" button.
Page state do's and don'ts:
Do's:
Use page state to store data that is specific to the current page and will be lost when the page is refreshed.
Use page state to improve the performance of your web application.
Use page state to store temporary data that does not need to be persisted across pages.
Don'ts:
Do not use page state to store data that needs to be persisted across pages.
Query Params
Query params are a way to pass data between pages. Page params are visible in the URL and can be used to retrieve the data when the user arrives at the next page.
Query params are parameters that are passed to a page when it is loaded. They are saved when you refresh the page, so any filters or other changes that you made will be preserved.
To create a page param:
Enter a name for the param.
In the "Default Value" (Optional) field, enter the default value that you want to use for the parameter.
Click the "Create" button.
Page parameter do's and don'ts:
Do's:
Use page parameters to pass data between pages in your application.
Use page parameters to filter or sort data on same page.
Use page parameters to customize the content of a page for a specific user.
Use page parameters to persist data across page refreshes, if the data is not sensitive and the amount of data is small.
Don'ts:
Do not use page parameters to store sensitive data, as it is visible in the URL.