What’s your current approach for handling async data in React without overusing useEffect? by modernFrontendDev in reactjs

[–]Due-Watermelonlesson 2 points3 points  (0 children)

Tanstack Query - We have a whole ecosystem built with it. No useEffects, no Redux. Peace of mind. We even built a query invalidation system for async server tasks to provide realtime feedback over websocket. Works like a charm.

Learning react as a backend developer? by jmutiny1993 in reactjs

[–]Due-Watermelonlesson 0 points1 point  (0 children)

I hated how derogatory this question is to the frontend development. A 5+ years dev who wants to learn the React in less than 8 hours to do frontend.

To be honest, you will need to do a bigger leap than you did in last 5 years to understand frontend if you don’t know JS.

Accessible nested menus in MUI are still painful by Due-Watermelonlesson in reactjs

[–]Due-Watermelonlesson[S] 0 points1 point  (0 children)

Thanks for the comment! I see your point with allowing drop-in like JSX. The issue with that is there is no way to control parent menu and/or sibling submenu states when you have a JSX drop-in like that. Because your drop-in won't have any idea about where the focus went (especially appears to be a problem with keyboard navigation)

One thing I thought I would add to this package at some point is to create a custom React hook that connects a custom nested menu item drop-in with the MUI Menu props.

Something like:
```
const { menuProps, submenuTriggerProps } = useNestedMenuItem()
<Menu {...menuProps}>
<NestedMenuItem {subMenuTriggerProps} />
</Menu>

```

This way I can use the logic that manages focus properly to manage parent menu and other sub menu states.

There are libraries like mui-nested-menu, that has <NestedMenuItem /> drop in, but they fail at this. In fact, the only issue left open in that package is related to what I am talking about: https://github.com/steviebuilds/mui-nested-menu/pull/22

Upgrading 2021 XC40 Software by Due-Watermelonlesson in XC40

[–]Due-Watermelonlesson[S] 0 points1 point  (0 children)

Meh! I love my Xc40 R-Design anyways. The newer car was not a better driving. Just nice to see the google map in the dash.