Giter Site home page Giter Site logo

redux-observable's Introduction

Build Status

Redux Observable

Redux RxJava Observable middleware for Kotlin

Download

repositories {
	...
	maven { url "https://jitpack.io" }
}
// RxJava 1
compile 'com.github.pardom.redux-observable:redux-observable:<version>'

// RxJava 2
compile 'com.github.pardom.redux-observable:redux-observable2:<version>'

redux-observable's People

Contributors

pardom avatar

Stargazers

Victoria Petite avatar  avatar take avatar amobiz avatar Henning Post avatar Andrew Chen avatar Erik Cupal avatar JitPack.io avatar  avatar Dzmitry Misiuk avatar Zaicheng Qi avatar

Watchers

James Cloos avatar  avatar

Forkers

yongjhih bhanditz

redux-observable's Issues

Race condition in initalization

Description

If you dispatch an action soon after creating the epic middleware, the returned Observable from the map function needs to start the subscription synchronously. If you subscribe with a different scheduler (subscribeOn), a race condition is created and events could be emitted before subscribers are ready.

Steps to reproduce the behavior

On the "create" test here Tests, make the returned observable subscribe on a different scheduler. Eg. .subscribeOn(Schedulers.io())

Investigation

At this point it is assumed that the actions subject has observers, however the actions.hasObservers() function shows that is not true.
What I think is happening is that since we are subscribing on a different thread in the epic observable, the function continues and emits an item before the observable is ready to receive items.

Middleware will terminal if it faces an exception.

I'm trying integrate redux-kotlin to our app. It works extreme well except when observable middleware. It will stop working if there is some exception are occurred.

How do you guy solve this issue? Thank you so much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.