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

Issue with this.db.batchedUpdates #7

Open
txs opened this issue Dec 27, 2016 · 7 comments
Open

Issue with this.db.batchedUpdates #7

txs opened this issue Dec 27, 2016 · 7 comments

Comments

@txs
Copy link

txs commented Dec 27, 2016

I'm having a this.db.batchedUpdates is not a function issue! Help

@vermiculite
Copy link

Hi I am just reading How react-native-meteor do it and thought it may help you out.

import ReactNative from 'react-native';
import minimongo from 'minimongo-cache';
process.nextTick = setImmediate;

const db = new minimongo();
db.debug = false;
db.batchedUpdates = React.addons.batchedUpdates;

Have to say not certain what you are doing but thought this may help.

@txs
Copy link
Author

txs commented Apr 18, 2017

My React.addons is undefined! Fixing it! Hope your solution work!

@txs
Copy link
Author

txs commented Apr 18, 2017

I'm using react 15.4.1 and cannot find addons and batchupdates in react

@vermiculite
Copy link

@txs this is how they do it today...

db.batchedUpdates = ReactNative.unstable_batchedUpdates;

@txs
Copy link
Author

txs commented Apr 27, 2017

OK! I use reactDom for fixing it. However, I have fork the minimongo and change the writetransaction and change the root code! Is there a easier way to put the line you said above?

@txs
Copy link
Author

txs commented May 13, 2017

I need to change every package into a new one since a lot of them depend on minimongo-cache and the batchedUpdates is not a function!

@txs
Copy link
Author

txs commented May 13, 2017

@vermiculite where do I change the db in what file?

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