We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIrst. Really love use-local-storage-state. Good work! 馃挴
use-local-storage-state
Issue: useEffect do not fire when cart state is updated. Any idea why?
useCart.js
import { createLocalStorageStateHook } from 'use-local-storage-state' const useCart = createLocalStorageStateHook('cart', {}) export default useCart
cart.js (simplified)
import useCart from '../utils/useCart' const [cart, setCart] = useCart() useEffect(() => { //fetch product details }, [cart])
The text was updated successfully, but these errors were encountered:
I couldn't replicate the issue. Can you reproduce the problem in the example here.
Sorry, something went wrong.
My bad! I updated state in a bad way. Works fine now! Thanks for the reply!
No branches or pull requests
FIrst. Really love
use-local-storage-state
. Good work! 馃挴Issue: useEffect do not fire when cart state is updated. Any idea why?
useCart.js
cart.js (simplified)
The text was updated successfully, but these errors were encountered: