@fluid-topics/ft-wc-utils
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -17,2 +17,3 @@ import { Action, AnyAction, CaseReducerActions, Dispatch, Observable, Reducer, Slice, SliceCaseReducers, Store, Unsubscribe } from "@reduxjs/toolkit"; | ||
clear(): void; | ||
setState(state: Partial<State>): void; | ||
get dispatch(): Dispatch<A>; | ||
@@ -19,0 +20,0 @@ [Symbol.observable](): Observable<any>; |
@@ -56,8 +56,3 @@ import { configureStore, createSlice } from "@reduxjs/toolkit"; | ||
return (stateFieldValue) => { | ||
this.reduxStore.dispatch({ | ||
type: "DEFAULT_STATE_FIELDS_VALUES_SETTER", | ||
overwrites: { | ||
[actionName]: stateFieldValue | ||
} | ||
}); | ||
this.setState({ [actionName]: stateFieldValue }); | ||
}; | ||
@@ -71,2 +66,8 @@ } | ||
} | ||
setState(state) { | ||
this.reduxStore.dispatch({ | ||
type: "DEFAULT_STATE_FIELDS_VALUES_SETTER", | ||
overwrites: state | ||
}); | ||
} | ||
// Implement Store | ||
@@ -73,0 +74,0 @@ get dispatch() { |
{ | ||
"name": "@fluid-topics/ft-wc-utils", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "Internal web components tools", | ||
@@ -19,3 +19,3 @@ "author": "Fluid Topics <devtopics@antidot.net>", | ||
}, | ||
"gitHead": "ea2d0683e542dd824889f183d48d0ed68fca794a" | ||
"gitHead": "e5ca580eaeb1a17693fa8f2cf59fbdca412bf7d0" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172612
2315