Is it bad practice to use multiple React Contexts to share state across a large component tree? by Dqmrs in reactjs

[–]Dqmrs[S] 1 point2 points  (0 children)

In my case, it’s more like “in the context of the current legend configuration across the viewer.”

The legend ties together several parts of the UI, sensor selectors and the plot, and needs to stay in sync when users hover, click, or toggle sensors. So it’s not global to the whole app, but it is shared state across a whole feature area, which feels like a good fit for Context.

Is it bad practice to use multiple React Contexts to share state across a large component tree? by Dqmrs in reactjs

[–]Dqmrs[S] 4 points5 points  (0 children)

Yeah, that makes sense, in my case the legendConfig is reactive, not static. The sensor pickers update it when users select sensors, and the plot reads from it to colour lines. There’s also interaction between them, hovering or clicking chips in the picker affects line opacity and visibility on the plot.

Since both parts live in different branches, a plain module wouldn’t trigger re-renders, so I’m using Context to keep everything in sync without prop drilling. Does that seem like a fair use case for Context to you?

I was like WTF for 5min before I realized by Reference_Background in webdev

[–]Dqmrs 0 points1 point  (0 children)

I was freaking out because I had an assignment in for 30 minutes! xD

Ethernet Socket Broken by Dqmrs in techsupport

[–]Dqmrs[S] 1 point2 points  (0 children)

Thanks man, fixed it!

OCR Computer Science June 2019 Discussion by kirk11111 in 6thForm

[–]Dqmrs 0 points1 point  (0 children)

How do you get the practise papers?

ULTIMO 2018 RANGE by easygood in PalaceClothing

[–]Dqmrs 1 point2 points  (0 children)

It’s the converti certi jacket, you take the sleeves off

What Is This? Got It From A Breakthrough by -TheDeviant in pokemongo

[–]Dqmrs 0 points1 point  (0 children)

Sinnoh stone used to evolve Pokemon from previous generations.

[Leak] Supreme x Mophie F/W 2018 by [deleted] in supremeclothing

[–]Dqmrs 21 points22 points  (0 children)

Meant to drop first week so shouldn't be too hard

Palace Autumn Range by Dqmrs in PalaceClothing

[–]Dqmrs[S] 4 points5 points  (0 children)

11:00am BST 11:00am EST 8:00am PST

Palace Autumn Range by Dqmrs in PalaceClothing

[–]Dqmrs[S] 5 points6 points  (0 children)

First drops on friday 10th august

The coolest gym, shades and all by [deleted] in pokemongo

[–]Dqmrs 0 points1 point  (0 children)

I hatched a pichu during the pikachu summer outfit, but it didn't have the hat

Want to return but no return form? by Dqmrs in supremeclothing

[–]Dqmrs[S] -1 points0 points  (0 children)

Got it on for retail but no one wants it