Daniel Gent

Results comments of Daniel Gent

If this version 17 upgrade is fine then all the other PRs can be closed, and their branches deleted :smile:

Ok there are a few things going on here. We have state in React for all these menus to say if they're open *but* we don't actually listen to the...

The reason the above bug wasn't spotted and the menu stayed open is because the menu `/assets/js/components/Menu.js` is built with a non-React library `@material/menu` This is passed a ref to...

*and* there's another bug which haven't spotted and `@material/menu` has covered up! There is a bug in the three menus' logic. The `handleMenuClose` mixes a click outside handler with a...

I managed to fix the weirdness with the menu taking two clicks to open *but* when I tab when `@material/menu` is focused it doesn't play well with React and the...

So I'm a bit concerned that the IB says `"there should be few/none, but it's possible a few useEffects might have legitimate dependency mismatches."` But running eslint with the new...

Apologies @Hazlitte. I was told to look at it. Leaving it to you now. I'd be very careful about fixing the errors when it's `useEffect` as that will change the...

From what I can see we have * useCallback errors: I think we can just do what the linter says. But if we're dealing with third party non-React libraries then...

@Hazlitte I don't mind. Push up your branch if so though and I can continue. Just let me know I'm a bit concerned though that the IB doesn't expect there...

Interestingly adding `"react-hooks/rules-of-hooks": "error"` generates *no* errors!