Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@pierr pierr released this 17 Jun 17:08
· 258 commits to master since this release

Beta

Focus Redux

Why ?

  • In focus components we provide a form which even if it was separated in sevral mixin, was really to use as a stand alone component.
  • We also found that there was state related issue inside many components, some from focus, some from the one built inside the projects.
  • We also want users to be able to have a better understanding of whats is going on, which actions are triggered, how is the state build.
  • We want you to have better devtools to use focus, to have a great Developer Experience.

What is under the hood

  • As in each focus extension, we use a tiny library to manage the application state called redux.
  • Previously we use to have a dispatcher from flux library and build state over EventEmitter
  • Now your state is build with functions and can be build with as many nodes as you need in structure like complex json object.

You need to read the awesome Redux documentation. At least the concepts.

Previous concepts

A component Component = f(state, props)

Everything is detailed here

Tutorial

A brand new tutorial is available (still under construction) here

Schema

Redux global architecture

image

The reducer tree

slack_for_ios_upload_720 2

The router API

slack_for_ios_upload_720 3