Giter Site home page Giter Site logo

Comments (8)

Diwei-Chen avatar Diwei-Chen commented on July 20, 2024 2

Cool. This works perfectly in our project.

Thank you very much, Julian.

Much appreciated.

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024 1

This should be working/fixed in v 2.0

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

You're not doing anything wrong, that's an issue with the way it's currently written (#24). After a connection is restored, it should (but doesn't) diff the collections. It's a difficult problem, because you want to store any documents that have been accessed, not just those from the current subscription.
To accomplish this, I'll have to store each subscription and a list of documents it includes. I don't think this will be too hard or expensive, we'll see. props go to GroundDB for solving a similar problem (https://github.com/GroundMeteor/subscriptions/blob/master/subscriptions.client.js). Let me give this a shot, maybe I can fix #27 while I'm at it.

from react-native-meteor-offline.

Diwei-Chen avatar Diwei-Chen commented on July 20, 2024

Thanks Julian. Much appreciated.

We think this library saves us a lot of work and is really useful to us.

We look forward to seeing the updates.

Thanks,

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

Great :)

It turns out subscription info is not really available for individual documents, as they're all combined on the server by the publications. I'll give this some more thought.

from react-native-meteor-offline.

Diwei-Chen avatar Diwei-Chen commented on July 20, 2024

Hi @JulianKingman , how is it going? Do you need any help with it?

from react-native-meteor-offline.

adamgins avatar adamgins commented on July 20, 2024

Hi @JulianKingman wondering if you've had any more thought on this or a better approach package to deal with offline?

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

Sorry I've been MIA, it's been a busy few weeks and I haven't had an immediate need for this. I've got an update that will improve performance quite a bit, and I'll add a 'dumb' implementation for removing docs at least, until I can figure out a smart one.

from react-native-meteor-offline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.