-
Notifications
You must be signed in to change notification settings - Fork 5
Cascading fetching of entities from different data sources #11
Comments
Hi @aksonov and sorry for the delayed answer. Yes, it's possible to do caching and efficient loading with observables and actually it doesn't even involve Combinators at all (they just show the result). I don't have enough specs to give any specific answers but in the end, the whole logic is just some observable/stream processing (e.g. combinations of Btw. |
@milankinen Thanks! I'm studying FRP now and trying to understand how to achieve my task. But atom concept looks very interesting. |
Looks like react.reactive supports wrapping of standalone React elements just R(DatePicker), will check how it works with React Native. |
Yes. React native components are just normal React components so you can wrap them all if you want. Something like this (written ad hoc, not tested!): // native.reactive.js
import R from "react.reactive"
import {Component} from "react"
import * as rn from "react-native"
const exports = {}
Object.keys(rn).forEach(key => {
const comp = rn[key]
if (comp instanceof Component) exports[key] = R(comp)
}
module.exports = exports
module.exports.default = exports // your-app.js
import R from "./native.reactive"
...
<R.Text>{myObservable}</R.Text> |
It runs perfect, thanks! The only issue i had to remove .babelrc from the package, because it conflicted with react native babelrc settings. Do you have any idea how to avoid that? I've successfully implemented counter example with react.reactive + calmm-js but have to remove .babelrc manually to run it. I could fork all stack and remove .babelrc, but it doesn't look good.. |
Could it be related? reduxjs/redux-thunk#44 ? |
You can add If you're using CALMM for state management, I'd recommend to use either |
I've moved to package.json and sent PR, looks like more elegant solution. I've tried kefir.react.html but it doesn't work under React Native on packager-level (something wrong with directory signal or something like that) |
Submitted PR, please check |
I have Messages contained Profile that contain Image. Is it possible to use Combinators to load everything effectively (with caching and without boilerplate)? I can't use Relay/Falcor because data is from xmpp server.
Sorry I'm new in FRP and cannot figure out how to do it. I've implement it with Redux, but it contains a lot of boilerplate...
The text was updated successfully, but these errors were encountered: