Skip to content

Commit 56cd7dd

Browse files
committed
Add ImmutableStore
1 parent ea82231 commit 56cd7dd

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/reshow-flux/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reshow-flux",
3-
"version": "0.15.0",
3+
"version": "0.15.1",
44
"description": "The smallest react flux and Fast hook alternative",
55
"main": "./build/cjs/index.js",
66
"module": "./build/es/index.js",

packages/reshow-flux/src/ReduceStore.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Map, Set, fromJS } from "immutable";
1+
import { Map, fromJS } from "immutable";
22
import { Store } from "reshow-flux-base";
33
import { toJS } from "get-object-value";
44

@@ -17,4 +17,3 @@ class ReduceStore extends Store {
1717
}
1818

1919
export default ReduceStore;
20-
export { Map, Set };

packages/reshow-flux/src/__tests__/immutableTest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect } from "chai";
2+
import { Map } from "immutable";
23

3-
import ReduceStore, { Map } from "../ReduceStore";
4+
import ReduceStore from "../ReduceStore";
45
import { Dispatcher } from "reshow-flux-base";
56

67
describe("Test immutable", () => {

packages/reshow-flux/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { default as useConnect } from "./useConnect";
2-
export { default as ReduceStore, Map, Set } from "./ReduceStore";
2+
export { default as ReduceStore } from "./ReduceStore";
3+
export { default as ImmutableStore, Map, Set, getMap, mergeMap } from "./ImmutableStore";
34
export { default as getStores } from "./getStores";
45
export { Dispatcher } from "reshow-flux-base";

0 commit comments

Comments
 (0)