I have something
here, but it is built on the type safe APIs which aren't released yet. There are actuals for CMP that currently just crash when you run them, so you'd have to build the type save navigation artifacts, as well as another underlying library, and use some combination of maven local and included builds to get it to work.
The file I linked above is the entry point for most things. If you want to see how it works check out
rememberHistory()
,
SyncHistoryAndBackstackEffect
, and
this line which is what consumers would use to actually update the url.