79602229

Date: 2025-05-01 16:56:21
Score: 2.5
Natty:
Report link

I think Keimeno's answer best explains but the alternative provided did not work for me I found this link gives this the same idea in a different way to code: https://github.com/pmndrs/zustand/discussions/2748

import {useShallow} from 'zustand/shallow';
    
const [isLoading, setLoading] = useLoadingStore(useShallow((state) => [ state.loading, state.setLoading]));
Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): this link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Colin Tondreau