Does anyone know whether Compose for web has or is...
# compose-web
u
Does anyone know whether Compose for web has or is considering a means to store data in query parameters, similar to nuqs? In the case of Compose, rememberSavable { } is commonly used. I'm wondering whether it's possible to manually build a mechanism to store data in query parameters when using this, or whether a library already exists to do so.
w
As far as I know this doesn't currently exist, but theoretically it could. With Nav3 and manual management of the navigationevent system, you can store state in and transform each NavigationEventInfo into a set of params which you constantly update the URL to.
🙇 1
u
In my view, state should be preservable by either method: • As a screen argument (via the navigation library) • External saved data (via
rememberSavable
) I intend to study this during my next holiday 🙌
n
I think you can achieve it with decompose relatively easily
1
❤️ 1