Skip to content

Commit b260536

Browse files
author
Nathaniel Dsouza
authored
Removing capability for running on web due to it requiring Metro >=0.59.0
1 parent a9e226f commit b260536

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Data.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ if(moduleExists("react-native")) {
2121
afterInteractions = require('react-native').InteractionManager.runAfterInteractions;
2222
}
2323
else {
24+
// This code allows the package to work on the web, but it causes an issue in Metro <0.59.0, which is hard to upgrade to due to the react native community CLI not supporting it
25+
/*
2426
afterInteractions = requestIdleCallback;
2527
try {
2628
db.batchedUpdates = require('react-dom').unstable_batchedUpdates;
2729
}
2830
catch(e) {
2931
console.warn("react-dom isn't installed, so minimongo-cache performance may be reduced");
3032
}
33+
*/
3134
}
3235

3336
function runAfterOtherComputations(fn) {

0 commit comments

Comments
 (0)