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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i read specifically items from session storage #286

Open
geetee24 opened this issue Aug 6, 2018 · 1 comment
Open

how do i read specifically items from session storage #286

geetee24 opened this issue Aug 6, 2018 · 1 comment

Comments

@geetee24
Copy link

geetee24 commented Aug 6, 2018

it appears that there is no way to specify which store I want? the lib always grabs from ls. I need from SS

@joel-chu
Copy link

joel-chu commented May 7, 2019

You build your store

Example in ES6

// session store with watch
import engine from 'store/src/store-engine';

import sessionStorage from 'store/storages/sessionStorage';
import cookieStorage from 'store/storages/cookieStorage';

import defaultPlugin from 'store/plugins/defaults';
import expiredPlugin from 'store/plugins/expire';
import eventsPlugin from 'store/plugins/events';

const storages = [sessionStorage, cookieStorage];
const plugins = [defaultPlugin, expiredPlugin, eventsPlugin];

const sessionStore = engine.createStore(storages, plugins);

export default sessionStore;

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

No branches or pull requests

2 participants