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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <Tooltip组件> Warning: An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback. Error Component Stack #2682

Open
1 task done
xiaotianna opened this issue Jan 21, 2025 · 0 comments

Comments

@xiaotianna
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

No response

Semi Version

2.73.0

Current Behavior

控制台报错1:Warning: An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback. Error Component Stack

控制台报错2:Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node Error Component Stack

虽然不影响使用,但是报错看着难受😂

Expected Behavior

<Tooltip
  content={'content'}
  style={{ display: 'inline-block', cursor: 'pointer' }}
>
  demo
</Tooltip>

页面只展示了这个组件就报错


### Steps To Reproduce

_No response_

### ReproducibleCode

```markdown

Environment

- OS:
- browser:

Anything else?

No response

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

1 participant