Is it possible to reuse the data from a list in multiple components? Let me explain.
I have a list of 20,000 employee names. I have a main web UX where the user can click a button to assign a name to a field. The button makes the "Add Person" pop-up window appear that has the list of 20,000 names and a search field so the user can type "John" and filter the list to names that contain "John". Once the user has found the desired employee, they can click the "Add" button and a new record is created on the main UX. The list filters as the user types. The list is set to only render the first 50 names, but it still takes a while for the pop-up window to appear the first time. Subsequent calls to the pop-up are instantaneous because the pop-up is cached by the browser. That's all good and has been working fine.
Now I have a situation where I need another pop-up window to appear under special circumstances. I also want the user to be able to search and select employee names from a list. I don't want this pop-up to take a long time to load the list that may already be cached from the Add Person pop-up. I don't see a good way to combine this pop-up with the other one.
The question I'm asking is: Is there a way I have both pop-ups use the same cached list data? I'm talking in terms of "with a few lines of code" and not requiring extensive programming or skill. I can survive if the list data is loaded twice but I want to be taking advantage of reuse if it can be done without a lot of effort.
Ben
I have a list of 20,000 employee names. I have a main web UX where the user can click a button to assign a name to a field. The button makes the "Add Person" pop-up window appear that has the list of 20,000 names and a search field so the user can type "John" and filter the list to names that contain "John". Once the user has found the desired employee, they can click the "Add" button and a new record is created on the main UX. The list filters as the user types. The list is set to only render the first 50 names, but it still takes a while for the pop-up window to appear the first time. Subsequent calls to the pop-up are instantaneous because the pop-up is cached by the browser. That's all good and has been working fine.
Now I have a situation where I need another pop-up window to appear under special circumstances. I also want the user to be able to search and select employee names from a list. I don't want this pop-up to take a long time to load the list that may already be cached from the Add Person pop-up. I don't see a good way to combine this pop-up with the other one.
The question I'm asking is: Is there a way I have both pop-ups use the same cached list data? I'm talking in terms of "with a few lines of code" and not requiring extensive programming or skill. I can survive if the list data is loaded twice but I want to be taking advantage of reuse if it can be done without a lot of effort.
Ben
Comment