@tsingroc/tsingroc-components 5.0.0-alpha.20 → 5.0.0-alpha.21

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.
@@ -219,7 +219,6 @@ export function AuthCheck(props) {
219
219
  const $ = _c(8);
220
220
  const auth = useAuth("AuthCheck");
221
221
  const userInfo = auth.userInfo;
222
- const effectDone = useRef(false);
223
222
  let t0;
224
223
  if ($[0] !== auth || $[1] !== props.onFail) {
225
224
  t0 = () => {
@@ -235,10 +234,6 @@ export function AuthCheck(props) {
235
234
  let t1;
236
235
  if ($[3] !== auth.userInfo || $[4] !== onUnloggedIn) {
237
236
  t1 = () => {
238
- if (effectDone.current) {
239
- return;
240
- }
241
- effectDone.current = true;
242
237
  if (!auth.userInfo) {
243
238
  onUnloggedIn();
244
239
  }
@@ -57,8 +57,7 @@ export const withAutoResize = ECharts => function AutoResizedECharts(props) {
57
57
  if (firstFire) {
58
58
  firstFire = false;
59
59
  } else {
60
- debugAssert(ref.current, "observer event should only be triggered when ref is connected");
61
- ref.current.instance?.resize();
60
+ ref.current?.instance?.resize();
62
61
  }
63
62
  });
64
63
  debugAssert(ref.current, "effect should run after ref is connected");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsingroc/tsingroc-components",
3
- "version": "5.0.0-alpha.20",
3
+ "version": "5.0.0-alpha.21",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "description": "",