Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Update .collection() method to work with multiple dbs#22

Open
ShishKabab wants to merge 1 commit intoYurySolovyov:masterfrom
ShishKabab:patch-1
Open

Update .collection() method to work with multiple dbs#22
ShishKabab wants to merge 1 commit intoYurySolovyov:masterfrom
ShishKabab:patch-1

Conversation

@ShishKabab
Copy link
Copy Markdown

By using the db parameter passed in by Dexie when constructing a new instance, every time a new instance is created, the collection method works only on the latest DB. This breaks use cases such as ours when testing multi-device sync, creating a backend DB and multiple client DBs.

By using the `db` parameter passed in by Dexie when constructing a new instance, every time a new instance is created, the `collection` method works only on the latest DB. This breaks use cases such as ours when testing multi-device sync, creating a `backend` DB and multiple `client` DBs.
@YurySolovyov
Copy link
Copy Markdown
Owner

Can you please add a test?

@ShishKabab
Copy link
Copy Markdown
Author

That'd take a bit more time, but I'll see if I can find it soon-ish :)

@YurySolovyov
Copy link
Copy Markdown
Owner

Sure, no rush

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants