Fix groupcall debug info in rageshakes
We were putting the whole array from setState in, so the debug info was wrapped in an array when it shouldn't be. Also comment the groupCallInspector setState/context dance which I now *finally* understand.
This commit is contained in:
parent
a479863f88
commit
e7353e184f
2 changed files with 13 additions and 6 deletions
|
|
@ -121,8 +121,11 @@ export function InspectorContextProvider({
|
|||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
// The context will be initialized empty.
|
||||
// It is then set from within GroupCallInspector.
|
||||
// We take the tuple of [currentState, setter] and stick
|
||||
// it straight into the context for other things to call
|
||||
// the setState method... this feels like a fairly severe
|
||||
// contortion of the hooks API - is this really the best way
|
||||
// to do this?
|
||||
const context = useState<InspectorContextState>({});
|
||||
return (
|
||||
<InspectorContext.Provider value={context}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue