stable

Clone or download

Read-only

refactor: use setup function to init root store

Other stores (fulltext & keyboard-navigation) are already using setup function to define their state, getters, and actions. To be consistent root store now switch from options object to setup function. Furthermore it will allow us to add watchers. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I79cdf1a210bb689ccac48810a9f5b553bd38f370

Modified Files

Name
M src/scripts/switch-to/src/stores/root.ts +88 −81 Go to diff View file