Open sprucely opened 1 year ago
Including setNotification in effect's dependency list causes endless loop. Maybe the notification hook needs to wrap the returned callback in useCallback?
setNotification
useCallback
https://github.com/ucdavis/Harvest/blob/11853a91a563729faecb3e5105bdc16839b175f4/Harvest.Web/ClientApp/src/Projects/ProjectDetailContainer.tsx#L40C7-L64
Including
setNotification
in effect's dependency list causes endless loop. Maybe the notification hook needs to wrap the returned callback inuseCallback
?https://github.com/ucdavis/Harvest/blob/11853a91a563729faecb3e5105bdc16839b175f4/Harvest.Web/ClientApp/src/Projects/ProjectDetailContainer.tsx#L40C7-L64