1.0.18 • Published 7 years ago

rx-reactstore v1.0.18

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

rx-reactStore is a state management tool to replace redux

  • core with rxjs
  • work with reactjs/react-router

How to install it

  • npm install rx-reactstore --save

How to use it

key concept

  • createStore will return an object have an additional stream called "updateStore" e.g
const initailSub = {
    a: 123,
    b: [
        1, 2, 3, 4
    ],
    c: {
        xx: "ok"
    }
}

export const subStreamStore = createStore(initailSub, 'subStore')

for a and b, we will have to subject to pass value, but for C we will call the createStore intenally. to get an object we will add the updateStore stream for each object

print out it , you will know

  • updateStore

there is an limitation for the value pass to updateStore stream.

for subStreamStore the value should be the object which will be part of the initailSub object

what is the sub object??

sorry for my poor english. e.g {a:"a"} {b:"b"} {a:"d",b:"bb"} {c:{xx:"rr"}} {a:"ee",c:{xx:"rre"}} {a:"55",b:"3",c:{xx:"re"}}

all the aboves will be fine. do not pass value like {xx:"ccc"}, this is the sub object of c not initailSub

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago