Seeking a dynamic library or hook for loosely-coupled data exchange between related components. I envision something along the lines of:
const { info, setInfo } = utilizeStorage('any.unique-identifier')
I anticipate 'info' to be a reference that updates whenever any component utilizes the 'setInfo' function to modify the structure. It is crucial that I don't need to predefine the storage areas. Any component that uses the same identifier will interact with the same storage area created upon first reference.
This concept is akin to a combination of vue-query and useState. Is there an existing solution for this approach, or perhaps a different/better method to achieve this functionality? While I did attempt to search online previously, I couldn't find anything pertinent. Appreciate any guidance!
Sincerely, Dominic