Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CircularProgress Indeterminate state] when value: null, it throws errors #1352

Closed
iNetJoJo opened this issue Mar 18, 2024 · 1 comment
Closed

Comments

@iNetJoJo
Copy link
Contributor

馃悰 Bug report

Error: [Progress] Invalid value: null
    at validateContext (http://localhost:6006/vendors-node_modules_chakra-ui_layout_dist_chunk-2OOHT3W5_mjs-node_modules_chakra-ui_layout_d-3c734a.iframe.bundle.js:452:19)
    at Machine.executeActions (http://localhost:6006/vendors-node_modules_chakra-ui_utils_dist_chunk-O3SWHQEE_mjs-node_modules_zag-js_anatomy_dist-c28652.iframe.bundle.js:719:13)
    at new Machine (http://localhost:6006/vendors-node_modules_chakra-ui_utils_dist_chunk-O3SWHQEE_mjs-node_modules_zag-js_anatomy_dist-c28652.iframe.bundle.js:927:10)
    at createMachine (http://localhost:6006/vendors-node_modules_chakra-ui_utils_dist_chunk-O3SWHQEE_mjs-node_modules_zag-js_anatomy_dist-c28652.iframe.bundle.js:988:42)
    at machine (http://localhost:6006/vendors-node_modules_chakra-ui_layout_dist_chunk-2OOHT3W5_mjs-node_modules_chakra-ui_layout_d-3c734a.iframe.bundle.js:404:69)
    at CircularProgress (http://localhost:6006/components-feedback-CircularProgress-CircularProgress-stories.iframe.bundle.js:350:142)
    at renderWithHooks (http://localhost:6006/vendors-node_modules_chakra-ui_hooks_dist_chunk-QP32JBMJ_mjs-node_modules_chakra-ui_react_dis-35516f.iframe.bundle.js:90215:18)
    at mountIndeterminateComponent (http://localhost:6006/vendors-node_modules_chakra-ui_hooks_dist_chunk-QP32JBMJ_mjs-node_modules_chakra-ui_react_dis-35516f.iframe.bundle.js:95967:13)
    at beginWork$1 (http://localhost:6006/vendors-node_modules_chakra-ui_hooks_dist_chunk-QP32JBMJ_mjs-node_modules_chakra-ui_react_dis-35516f.iframe.bundle.js:97551:16)
    at beginWork (http://localhost:6006/vendors-node_modules_chakra-ui_hooks_dist_chunk-QP32JBMJ_mjs-node_modules_chakra-ui_react_dis-35516f.iframe.bundle.js:105947:14)

on sandbox it does not render anything, only root.

const [state, send] = useMachine(
  progress.machine({
    value: null,
  }),
)
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

馃捇 Link to reproduction

CodeSandbox reproduction: https://codesandbox.io/p/live/e383c2c5-c01d-4639-bfa7-94067ec70a3d

馃 Expected behavior

馃Л Possible Solution

馃實 System information

Software Version(s)
Zag Version
Browser
Operating System

馃摑 Additional information

@segunadebayo
Copy link
Member

I just pushed a fix for this. We'll release an update shortly.

If the issue persists after upgrading, I'll re-open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants