Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent infinite rerenders in useIncomingWebhooks (#6176)
React can sometimes be non-intuitive and behave erratically due to the way it detects changes in hook dependencies. This prevents infinite re-renders from `useIncomingWebhooks` by using a static `DEFAULT_DATA` constant, so that its reference is always the same, so no changes are detected when there are none. Unrelated scouting, but this PR also removes an unneeded dependency in the memoized columns in `ProjectActionsTable`.
- Loading branch information