@canplot/react 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/canplot.mjs CHANGED
@@ -102,11 +102,9 @@ const j = (t, n, e) => Math.min(Math.max(t, n), e), fe = (t) => t.reduce((n, e)
102
102
  if (!e || !s)
103
103
  throw new Error("useFrame must be used within a CanPlot component");
104
104
  const o = I(t);
105
- o.current = t, N(() => {
106
- o.current(e.getState()), e.subscribe((i) => {
107
- i._frame && o.current(i);
108
- });
109
- }, [e]), Tt(() => {
105
+ o.current = t, N(() => (o.current(e.getState()), e.subscribe((i) => {
106
+ i._frame && o.current(i);
107
+ })), [e]), Tt(() => {
110
108
  s.getState().notify();
111
109
  }, [s, ...n]);
112
110
  }, mt = (t) => {