@britannica/react-hooks
Advanced tools
Comparing version 0.2.6 to 0.2.7
import { bindActionCreators } from 'redux'; | ||
import { useDispatch } from 'react-redux'; | ||
import { useMemo, useState, useEffect } from 'react'; | ||
function useActions(actions, deps) { | ||
const dispatch = useDispatch(); | ||
function useActions(actions, deps, dispatch) { | ||
// const dispatch = useDispatch(); | ||
return useMemo(() => { | ||
@@ -8,0 +7,0 @@ if (Array.isArray(actions)) { |
{ | ||
"name": "@britannica/react-hooks", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
4618
118