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

Accessing multiple object store #33

Open
darshanksexathought opened this issue Dec 30, 2020 · 2 comments
Open

Accessing multiple object store #33

darshanksexathought opened this issue Dec 30, 2020 · 2 comments

Comments

@darshanksexathought
Copy link

darshanksexathought commented Dec 30, 2020

How to access multiple object store data
<IndexedDB name={Constants.IdbDBConfig.name} version={1} objectStoresMeta={[Constants.indexDbSchema, Constants.indexDbSchema.plant]}>
//----> here I can only access one store
{({ add, getAll, update , getByID}) => {
}}


creating multiple store is also not working it creates only first store in the objectStoreMeta

@jobindcruz
Copy link

jobindcruz commented Aug 14, 2021

@darshanksexathought

Creating multiple store is working. Check this

#5

@crlsmtzprds
Copy link

You can use aliases for methods...

let { add : myCustnomAddName, getAll : myCustom } = useIndexedDB('model')

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

3 participants