I am using react-quill, and it’s requirement is that modules prop must be cached and shouldn’t change. I am using useMemo hook to memoize it. The object is: and it’s used like: handleFunc in modules object, just console logs value prop. The issue is that value is not latest, it’s the first value. I tried same thing in class component
Tag: react-usememo
Adding object values to useMemo hook for React
I am attempting to create a react-table component using data that is pulled from a database. From the documentation I have read (https://react-table.tanstack.com/docs/quick-start), it seems like the react-table library uses a useMemo hook to create the data which will be displayed on the table. However, I am having trouble actually adding data to the useMemo hook, since I am not