Put in order · Vue.js course · Module 11: Pinia
Advanced Persist Configuration
Arrange the elements of advanced persistence configuration
Items to put in order
- persist: [{ pick: [...], storage: sessionStorage }, { pick: [...], storage: localStorage }]
- persist: { storage: sessionStorage, key: 'custom' } (custom storage)
- persist: { pick: ['token'] } (selected fields)
- persist: true (entire state, localStorage)
You can check the correct answer by solving this task in the CodeWorlds game.