Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
/ reactive-loop Public archive

Reax - playground for react + rxjs, redux-inspired

Notifications You must be signed in to change notification settings

flq/reactive-loop

Repository files navigation

An rxjs-based reactive loop and a link to React

If you have used React, chances are that you have heard of Flux. If you've heard of Flux, chances are you've heard of redux.

You wouldn't be alone to think of reactive-loop as yet another flux-thingy.

Even so, after having used redux and similar styles of setting up a frontend, I still have found value in putting this together and see if somebody else likes to base a flux-like architecture on rxjs' Observables and some polish around it.

Much of the usage revolves around the possibillity to define functions of the form

function(action, state) {
  return state'
}

(which in reactive-loop are called AppFuncs). While testing the whole thing a number of additional necessary features came to be.

  • Ability to return a Promise<State>
  • Ability to dispatch actions as well as Observables that return actions.
  • A way to handle errors while looping around
  • A builder pattern to set up an application, with the ability to add literal objects as apps based on conventions

Getting started

In the repository you will find two samples (for now), which show off a number of possibilities available with reactive-loop. You can run

npm run samples:run

You also have the documentation.

About

Reax - playground for react + rxjs, redux-inspired

Resources

Stars

Watchers

Forks

Packages

No packages published