I have a category group (Group Category) and want to load a specific category when I pass its ID to the page. I’m considering two approaches:
- Load the Group Category datasource and perform a search for the category with the provided ID.
- Display data in a group on page load and then perform a search for the category with the provided ID.
It’s worth noting this page is kind of a single page app, with dozens of groups for different objects, so setting the page “Thing” to category is not the way.
I have a few questions regarding these approaches:
- When I load the category from the group itself, does the data source update in real-time? That is, will the page update when data is updated by another user or the same user in a different tab or process?
- When I load data on page load, does it load once and then remain unchanged? If so, will updates to the data elsewhere not be reflected?
- Finally, I need to set a custom state when a page loads for the first time with data from the database. Is this only possible on a page load event?
Thank you for your help.