New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Router State is No Longer Saved To Disk #3322
Labels
Comments
I encountered this issue and wrote this hack to get around it:
|
If anyone is willing, be happy to take a PR for the affected systems. I been under the pump lately and should be a easy PR for anyone to pick up. Also thanks for the workaround @advorange |
Closing as this looks complete and no further issues have been raised |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug 馃悶
Earlier, we were able to save
RoutingState.NavigationStack
to disk, as the collection was annotated as a[DataMember]
: https://github.com/reactiveui/ReactiveUI/blame/a43e99ae2fbcd644460f245f471f573b7d3b66ec/src/ReactiveUI/Routing/RoutingState.cs#L26-L27But now, the observable collection is
[IgnoreDataMember]
d: https://github.com/reactiveui/ReactiveUI/blob/main/src/ReactiveUI/Routing/RoutingState.cs#L50-L51Step to reproduce
ReactiveUI.Samples.Suspension.sln
,RoutingState.NavigationStack
is no longer saved to disk when the app is closed.Reproduction repository
https://github.com/reactiveui/ReactiveUI.Samples/
Expected behavior
ReactiveUI suspension feature used to be working according to this guide: https://habr.com/en/post/462307/
And according to the documentation page: https://www.reactiveui.net/docs/handbook/data-persistence/
Probably worth marking
NavigationStack
asDataMember
again and adding back a default ctor, if this won't cause issues, and if these were removed unintentionally.ReactiveUI Version
17.0.1+
The text was updated successfully, but these errors were encountered: