@unitedstatespowersquadrons/components 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,9 +18,10 @@ export default function wrapDispatch<
18
18
  >(
19
19
  dispatch: DispatchFunc<A>,
20
20
  appActionTypes: AppActionType<A>[],
21
- handler: DispatchHandler<A>
21
+ handler: DispatchHandler<A>,
22
+ skipDebounce?: boolean
22
23
  ): DispatchFunc<A> {
23
- const updateDebounceTime = (("testEnv" in window) && window.testEnv) ? 50 : 250;
24
+ const updateDebounceTime = skipDebounce ? 0 : ((("testEnv" in window) && window.testEnv) ? 50 : 250);
24
25
 
25
26
  const updateHandler = async (action: A, signal: AbortSignal) => {
26
27
  const handlerData = handler(action);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {