geof90 / react-native-code-push-saga Goto Github PK
View Code? Open in Web Editor NEWRedux saga that handles synchronizing a React Native app with the CodePush service
Redux saga that handles synchronizing a React Native app with the CodePush service
If I set for instance syncOnInterval
to 30 seconds (and updateDialog
true), release a new update, a dialog never shows up. Only when I restart the app (and thus load the saga again) does the prompt show up.
The same issue when dispatching a SYNC
action, nothing happens.
Any ideas?
Hi!
I'm passed all steps about integrating react-native-code-push,
after that I've installed react-native-code-push-saga and import it to the project^ beside that - to the root saga.
But I'm receiving "Cannot read property 'sync' of undefined" when trying to yield it or invoke in any other way.
p.s. I'm using wix navigation in my app.
export default function* () { yield takeLatest(Action.CHANGE_CONNECTION_STATUS, checkNetwork) yield takeLatest(Action.GET_COUNTRY, getCountry) yield takeLatest(Action.GET_REGION, getRegion) yield spawn(watchAlertChannel) yield spawn(codePushSaga) yield all([ categories(), feedbacks(), producers(), bankInfo(), products(), profile(), filters(), search(), offers(), cart(), bonuses(), ]) }
NPM version is outdated, need to update it!
I thought I could
spawn(codePushSaga, {codePushStatusDidChange: didChange})
where
function* didChange(status) {
console.log(`status-${status}`)
}
and this would allow me to
yield put(....)
within the didChange function.
But the didChange is never triggered. A normal function does get callled.
Any ideas on how to work around this ?
I'm having to drop the saga and use the codePush lifecycle hooks, then store.dispatch some action.
Can I pass an array of actions to either of these params?
Using this in my root saga
yield spawn(codePushSaga, {
syncOnResume: false
});
The following issue shows up sometime on startup since I added this. Anyway to catch it?
wrong screenshots.
Its actually this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.