Comments (9)
@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.
I will test this soon !
I'm curious, why do you need ddp listeners for ?
from react-native-meteor.
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.
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.
I think it just working without calling meteor.on connect first. I"ll try
from react-native-meteor.
@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.
@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.
Can I close @radiegtya ?
from react-native-meteor.
@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)
- Why does find() not return a cursor? HOT 1
- Struggling to get access to the remote Mongo database and meteor server HOT 6
- User logged out after loginWithPassword and changing network WIFI/4G HOT 1
- AsyncStorage is deprecated in React Native core as of 0.59
- Proper way to pass parameters from client to server HOT 5
- Mongo Documents with ObjectId is not being updated and create new document with Mongo.ObjectId
- [REQUEST] Be able to have local only collection
- [Deprecation] NetInfo Dependency Moved HOT 2
- Is there any way to have 2 columns in MeteorListView? HOT 1
- Unable to initialise Meteor.connect(connection_string) HOT 1
- Can't connect to local server using real device HOT 8
- Error while trying to upload image from react-native HOT 1
- Use function component.React new feature HOOKS.how to use with it?
- Roles are not published with Meteor.user() HOT 1
- Accounts.onLogin not triggered on iOS
- NetInfo is no longer part of react native HOT 4
- Is this package future-proof?
- react-native-meteor not working on android versions 9.0 and above HOT 1
- Realm Database issue
- Can't Connect to Meteor Production Server (Azure)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-meteor.