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

No data for some collections #11

Closed
harry-73 opened this issue Aug 23, 2024 · 6 comments
Closed

No data for some collections #11

harry-73 opened this issue Aug 23, 2024 · 6 comments

Comments

@harry-73
Copy link

When a subscription is made very early in the startup process on a app, the collection inside the indexedDB remains empty.

It is like the package is still not initialized.

I have a top-level App component and Foo component embedded into App. If the subscription is in App Component, the indexedDB collection is empty. If I put it inside Foo component it is OK.

@harry-73
Copy link
Author

FYI.
Adding the setTimeout(() => { subscription }, 1000); in App to delay the subscriptions works

@jamauro
Copy link
Owner

jamauro commented Aug 23, 2024

I wasn't able to repro this. If you can provide a minimal repro, that would be helpful. Can you repro when not using vite?

@harry-73
Copy link
Author

You can use this repo: https://github.com/harry-73/jam-offline-meteor

It is with Vite.

@harry-73
Copy link
Author

Did you have to look at the repo?

Thanks.

@jamauro
Copy link
Owner

jamauro commented Oct 5, 2024

Thanks for the repo. I just published v0.3.1 to fix this issue.

@jamauro jamauro closed this as completed Oct 5, 2024
@harry-73
Copy link
Author

harry-73 commented Oct 6, 2024

I confirm. It is fixed.

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