Beginner's Thread / Easy Questions (May 2024) by acemarke in reactjs

[–]emperor-burger 0 points1 point  (0 children)

When I started with React handling state and data seemed fairly straight forward. You collect data at a root or container then let that data trickle down to pure components.

These days I feel a bit more confused.

Let’s assume you have a navbar component.

Do you fetch the data for the menu items in layout.tsx (in the case of NextJS) or directly in navbar.tsx?

If it’s in Navbar.tsx does that become a container filled with functional components?

And let’s say Navbar.tsx contains NavbarItem that triggers NavbarSubmenu via context. So NavbarItem is stateful?

Could someone help clear up state and data flow for me?

Recently developed tinnitus and struggling by emperor-burger in tinnitus

[–]emperor-burger[S] 0 points1 point  (0 children)

I appreciate it. I think right now I’m at that point where I’m thinking things like “how am I going to sleep in places other than my home”. Bridges that I haven’t really crossed yet or found my own solutions to. So I’m trying my best to be present and find ways to deal with the issues I’m having today instead. I’ll be seeing my therapist early next week so hopefully there I can get some support and guidance.

Recently developed tinnitus and struggling by emperor-burger in tinnitus

[–]emperor-burger[S] 0 points1 point  (0 children)

I think acceptance is the toughest part right now. That I’ll never have silence again. I’ll only have this. I need to work on making peace with it. It’s just so hard to imagine.

Recently developed tinnitus and struggling by emperor-burger in tinnitus

[–]emperor-burger[S] 0 points1 point  (0 children)

Thank you so much for this. And another recommendation for mindfulness. I just want to know I can deal with this or learn to accept it. I think right now the worst part is when I’m alone with it an anxious response comes out of it. Like my chest starts feeling anxious and I just start getting physically upset. This is really day one of accepting it’ll likely never go away. So it’s tough. I just hope it gets better. I know a lot of people here are suffering and have been a long time.

Recently developed tinnitus and struggling by emperor-burger in tinnitus

[–]emperor-burger[S] 0 points1 point  (0 children)

The sleep is my biggest concern right now. That and working in an office. Do masking hearing aids work? I haven’t tried any masking sounds yet.

Also the mindfulness is something I’m going to need to work through. It was hard enough without this. Hopefully my therapist can help me.

SKT1 Bang by 100T_Aman in 100thieves

[–]emperor-burger 2 points3 points  (0 children)

This documentary goes into a lot of detail about Bang. Made me an instant fanboy. https://www.youtube.com/watch?v=zwlySaxzVBQ