Skip to content
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

[base] Make settings store observable + integrate with DocumentsListPane #977

Merged
merged 1 commit into from Sep 24, 2018

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Sep 24, 2018

This includes a small refactor of the settings store so that changes in keys can be subscribed to. It fixes a regression from the structure feature that broke persisting of sort order/layout for document lists.

I also refactored out the localStorage/noop storage parts into a more generic concept of "storage backends", (of which localStorage is just one of several possible), and replaced the noop store with an in-memory storage that we fall back to if localStorage is not supported. Hope it's not too overengineered 馃槄

Note: I also took the liberty of removing the clear()-method for now, as it's not currently needed. It should be pretty trivial to add later.

Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤

@bjoerge bjoerge merged commit fc110c6 into next Sep 24, 2018
@bjoerge bjoerge deleted the persist-document-list-pane-settings branch September 24, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants