-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up state and separate it (#1170)
Closes #1169 ### Summary of Changes - Split up the currentState into tabs, table and history stores, as no saving to vscode global state anymore so not needed to save as one big object - This means that svelte does not have to reevaluate so many things when something small changes, as in a new history item does not cause update to whole state anymore that causes table to update in background - Also easier to manage and update - tableIdentifier in table object, defaultState property not needed anymore and UserSettings not yet - columns don't have a number anymore as order is just array order - table filter is object that can have all the tablefilters but not multiple of one type - columnWidths still shall remain own store in component, as otherwise resize drag would cause massive amount of updates to the table store - setCurrentState msg is not setInitialTable and takes Table, error if executed more than once Co-authored-by: Lars Reimann <mail@larsreimann.com>
- Loading branch information
1 parent
90bd47c
commit a07e893
Showing
10 changed files
with
203 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.