@canplot/react 0.1.16 → 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) => {
@@ -828,7 +826,7 @@ const xe = Lt(({ configuration: t, children: n, style: e, className: s }, o) =>
828
826
  },
829
827
  onMouseLeave: (l) => {
830
828
  f(l, (p, x, v) => {
831
- T.sync_move.dispatchEvent(r, {
829
+ T.sync_move.dispatchEvent(u, {
832
830
  positions: null,
833
831
  keys: v
834
832
  });