reductive-dev-tools
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -219,3 +219,3 @@ // Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, Reductive.Store[/* getState */5](store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](Reductive.Store[/* getState */5](store$3))); | ||
case "IMPORT_STATE" : | ||
@@ -238,3 +238,3 @@ var nextLiftedState = Belt_Option.getExn(Caml_option.undefined_to_opt(payload$2.nextLiftedState)); | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, Reductive.Store[/* getState */5](store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](Reductive.Store[/* getState */5](store$3))); | ||
case "ROLLBACK" : | ||
@@ -249,3 +249,3 @@ var stateString = Utilities$ReductiveDevTools.unwrap(Caml_option.undefined_to_opt(action$4.state), [ | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, Reductive.Store[/* getState */5](store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](Reductive.Store[/* getState */5](store$3))); | ||
case "LOCK_CHANGES" : | ||
@@ -456,3 +456,3 @@ case "SWEEP" : | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, getState(store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](getState(store$3))); | ||
case "IMPORT_STATE" : | ||
@@ -472,3 +472,3 @@ var nextLiftedState = Belt_Option.getExn(Caml_option.undefined_to_opt(payload$2.nextLiftedState)); | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, getState(store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](getState(store$3))); | ||
case "ROLLBACK" : | ||
@@ -481,3 +481,3 @@ var stateString = Utilities$ReductiveDevTools.unwrap(Caml_option.undefined_to_opt(action$3.state), [ | ||
meta$2[/* actionCount */2] = 0; | ||
return Extension$ReductiveDevTools.init(devTools$1, getState(store$3)); | ||
return Extension$ReductiveDevTools.init(devTools$1, Utilities$ReductiveDevTools.Serializer[/* serializeObject */2](getState(store$3))); | ||
case "LOCK_CHANGES" : | ||
@@ -484,0 +484,0 @@ case "SWEEP" : |
{ | ||
"name": "reductive-dev-tools", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "reductive and reason-react reducer component integration with Redux DevTools", | ||
@@ -5,0 +5,0 @@ "main": "lib/js/src/reductiveDevTools.bs.js", |
@@ -163,11 +163,5 @@ ## reductive-dev-tools | ||
And(if really needed) you can override bucklescript debug metadata. Please refer to following definitions in `Utilities`: | ||
This can also be used to override bucklescript debug metadata(if really needed). Definitions are at: [utilities.rei](https://github.com/ambientlight/reductive-dev-tools/blob/a530ea6d09d7facad2b70c061703eff52cfa80b4/src/utilities.rei#L63-L67) | ||
```reason | ||
let tagVariant: ('a, string) => 'a; | ||
let tagPolyVar: ('a, string) => 'a; | ||
let tagRecord: ('a, array(string)) => 'a; | ||
``` | ||
## Word Of Caution | ||
Current implementation depends on internal bucklescript representation of debug metadata and variants in js. Changes to it in future may silently break the extension. |
Sorry, the diff of this file is not supported yet
116364
167