I think this is a bug but want to confirm: I have ...
# compose
m
I think this is a bug but want to confirm: I have a
savedInstanceState
inside a "view pager" page, and when I go to another page then come back I got an
Key -751342538 was already registered. Please call unregister before registering again
at androidx.ui.savedinstancestate.UiSavedStateRegistryImpl.registerProvider
l
cc @Andrey Kulikov
a
hey! could you please show the code of your view pager? it is a bug, I recently reproduced a similar issue and hope to fix it soon
m
Turns out the minimal example I am able to reproduce it is when the state is created inside a AdapterList. if the savedInstanceState is move out then it doesn't crash. In my case, I don't really need to declear it inside a AdapterList item --- it is an header with some state
a
Thanks, I will try to fix it