Hi đź‘‹

We’ve noticed that the apache-skywalking-datasource mutates React props in
Grafana. For example, these lines
<https://github.com/apache/skywalking-grafana-plugins/blob/main/src/components/ConfigEditor.tsx#L37-L40>
mutate the `basicAuth` props passed into the React component.

While this currently works in Grafana, it may not be compatible with future
versions and could lead to runtime errors. To ensure long-term stability,
we recommend avoiding prop mutation. You can find more details in the React
docs:
https://react.dev/reference/rules/components-and-hooks-must-be-pure#props

All the best
Hugo

Reply via email to