Panel plugin doesn't load when using useState

It loads and show data when not using useState the picture below is an example of 2 cases(1.not using hooks and 2.using hooks)

Thanks for the informative screenshots! It looks like the error is due to Grafana not finding tslib.

Looks like you might’ve run into a bug in Grafana Toolkit. Are you using Grafana Toolkit 8.3.x to build your plugin? If so, check out the post on why we’re Deprecating Grafana Toolkit versions from 8.3.0 to 8.3.3.

1 Like

Thankyou very much!!

1 Like