Giter VIP home page Giter VIP logo

Comments (9)

Mokto avatar Mokto commented on August 26, 2024 1

@radiegtya What do you mean by "not working" ?

The only condition to use Meteor.ddp.on is to execute Meteor.connect before you execute Meteor.ddp.on.

Is this what you do ? Because every listener is working in my case.

from react-native-meteor.

Mokto avatar Mokto commented on August 26, 2024

I will test this soon !

I'm curious, why do you need ddp listeners for ?

from react-native-meteor.

radiegtya avatar radiegtya commented on August 26, 2024

dunno is this still needed or not because your minimongo cache is stable enough right now.

But I can say that sometime this is needed for some case like:

  • realtime local notification when not using GCM or APN.
  • caching chat data. This is hard to explain LOL.
    example: only subscribe some data which date $gt latestSavedDateOnCache, then on added, save data to cache but don't add data to cache while the data are from currentLoggedIn user, because data from currentLoggedIn user are saved when pressing send message. (btw this can be done with current react-native-meteor beta though)

from react-native-meteor.

spencercarli avatar spencercarli commented on August 26, 2024

Haven't tested this but I would also like to advocate exposure of the ddp listeners for things like hooking the data into redux rather than minimongo

from react-native-meteor.

radiegtya avatar radiegtya commented on August 26, 2024

I think it just working without calling meteor.on connect first. I"ll try

from react-native-meteor.

radiegtya avatar radiegtya commented on August 26, 2024

@spencer I don't think so that we can store data to redux with Meteor.ddp.on too, because the data run too fast and can't wait while the async saving the data, because i have tested it when using ddp-client npm package. dunno that i have wrong code or it just not working

from react-native-meteor.

spencercarli avatar spencercarli commented on August 26, 2024

@radiegtya I haven't had any issues with speed. I don't write to AsyncStorage whenever the redux state changes though.

from react-native-meteor.

Mokto avatar Mokto commented on August 26, 2024

Can I close @radiegtya ?

from react-native-meteor.

radiegtya avatar radiegtya commented on August 26, 2024

@spencercarli : I haven't tested using redux storage, but if it can be saved, then I am glad to hear
@Mokto : ok I'll close this, thanks

from react-native-meteor.

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.