Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

reactjs - Getting IntelliJ warnings everywhere I use the react useContext() hook

I have a few contexts I wrote in my project, and everywhere I try to use them I get warnings. So what I did was:

  1. Cloned this example of using react context hooks.
  2. Verified that the useContext(MusicPlayerContext) line had no warnings in the cloned project.
  3. Pasted the context file and the file that consumes it into my project.
  4. Verified that I even get the same warning on the useContext(MusicPlayerContext) line in my project.

I am sure this is something like a setting or something really simple and/or stupid, I just can't figure it out. The javascript signature check warning seems to be enabled in both projects.

enter image description here

question from:https://stackoverflow.com/questions/65545435/getting-intellij-warnings-everywhere-i-use-the-react-usecontext-hook

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...