Need to restore the page number and page size of pagination after manual browser refresh #2786
-
Hi, I have the following requirement: Suppose a user switches to page number 5 with page size 10 of my data table and manually refreshes the browser. Now, I want the user to be back on the previous page number 5 itself with page size 10. What would be the correct approach to achieve this? Any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Did you consider to save these options in localStorage? Would probably be the easiest way to handle this. |
Beta Was this translation helpful? Give feedback.
-
You can add states to the url if you build a page table |
Beta Was this translation helpful? Give feedback.
Did you consider to save these options in localStorage? Would probably be the easiest way to handle this.