reductive-dev-tools
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -204,3 +204,11 @@ // Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE | ||
Curry._1(store[/* component */0][/* send */3], Curry._1(deserializeVariant, targetAction)); | ||
var newState = getState(store); | ||
var connectionInfo = unwrap(Js_dict.get(connections, meta[/* connectionId */3]), [ | ||
ConnectionNotFound, | ||
"DevTool connection(id=$connectionId) not found" | ||
]); | ||
var match = Curry._2(connectionInfo[/* retainedReducer */1], Curry._1(deserializeVariant, targetAction), connectionInfo[/* retainedState */0]); | ||
var tmp; | ||
tmp = typeof match === "number" || match.tag ? connectionInfo[/* retainedState */0] : match[0]; | ||
connectionInfo[/* retainedState */0] = tmp; | ||
var newState = connectionInfo[/* retainedState */0]; | ||
Caml_array.caml_array_get(computedStates, i).state = Curry._1(serializeObject, newState); | ||
@@ -234,4 +242,2 @@ return /* () */0; | ||
var ConnectionNotFound$1 = Caml_exceptions.create("Connectors-ReductiveDevTools.ConnectionHandler(Store).Exceptions.ConnectionNotFound"); | ||
function processToogleAction$1(store, payload, liftedState, meta) { | ||
@@ -262,11 +268,3 @@ var skippedActions = liftedState.skippedActionIds; | ||
Reductive.Store[/* dispatch */4](store, action); | ||
var connectionInfo = unwrap(Js_dict.get(connections, meta[/* connectionId */3]), [ | ||
ConnectionNotFound$1, | ||
"DevTool connection(id=$connectionId) not found" | ||
]); | ||
var match = Curry._2(connectionInfo[/* retainedReducer */1], Curry._1(deserializeVariant, targetAction), connectionInfo[/* retainedState */0]); | ||
var tmp; | ||
tmp = typeof match === "number" || match.tag ? connectionInfo[/* retainedState */0] : match[0]; | ||
connectionInfo[/* retainedState */0] = tmp; | ||
var newState = connectionInfo[/* retainedState */0]; | ||
var newState = Reductive.Store[/* getState */5](store); | ||
Caml_array.caml_array_get(computedStates, i).state = Curry._1(serializeObject, newState); | ||
@@ -273,0 +271,0 @@ return /* () */0; |
{ | ||
"name": "reductive-dev-tools", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "reductive and reason-react reducer component integration with Redux DevTools", | ||
@@ -5,0 +5,0 @@ "main": "lib/js/src/reductiveDevTools.bs.js", |
Sorry, the diff of this file is not supported yet
86201
765