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
Winson Chiu
12/15/2025, 6:56 AM
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
てべすてん- TBSten -
12/15/2025, 8:00 AM
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
Neon
12/26/2025, 12:37 AM
I think you can achieve it with decompose relatively easily