Skip to content

fix: Remove unused ref forwarded to all dashboard panels#1451

Merged
mattrunyon merged 2 commits intodeephaven:mainfrom
mattrunyon:dashboard-panel-forward-ref-fix
Aug 22, 2023
Merged

fix: Remove unused ref forwarded to all dashboard panels#1451
mattrunyon merged 2 commits intodeephaven:mainfrom
mattrunyon:dashboard-panel-forward-ref-fix

Conversation

@mattrunyon
Copy link
Copy Markdown
Collaborator

@mattrunyon mattrunyon commented Aug 17, 2023

This ref doesn't seem to be used by anything and prints dev warnings if any panel is a functional component that doesn't use React.forwardRef. I couldn't find anywhere we actually use the ref and it looks like it was a workaround for golden-layout adding the ref as default props to every component. The way we use golden-layout, I don't think it's even possible to attach a ref to the component in a way that a plugin could access that ref.

@mattrunyon mattrunyon requested a review from mofojed August 17, 2023 19:46
@mattrunyon mattrunyon self-assigned this Aug 17, 2023
@mattrunyon mattrunyon merged commit 938aa07 into deephaven:main Aug 22, 2023
@mattrunyon mattrunyon deleted the dashboard-panel-forward-ref-fix branch August 22, 2023 18:57
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants