BUG | UseEffect can not be used in content-script
See original GitHub issueWhat happened?
A bug happened!
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
react.development.js:207 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
(OPTIONAL) Contact Details
No response
Code of Conduct
- I agree to follow this project’s Code of Conduct
- I checked the current issues for duplicate problems.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Chrome Extension Background Page and useEffect ... - GitHub
Do you want to request a feature or report a bug? bug What is the current behavior? When using useEffect from a background...
Read more >Update React component injected to DOM in Chrome ...
I want to update (re-render) the component on every navigation (url change) made by the user on the website which my React app...
Read more >Creating a Chrome extension with React and TypeScript
Learn how Chrome extensions work and communicate, then see how to build one using the full power of React and TypeScript.
Read more >How to Develop React Chrome Extension for Medium in 26 ...
In this (little lengthy) article I will show you exactly how I created the Medium Any Author Stats Chrome extension: After reading it...
Read more >Moralis JS SDK v1.0 (migration to Ethers.js) - Moralis - Moralis Web3 ...
The v1 update in the sdk does not affect on how web3 works in the cloud-code. ... when you use react, you can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah it’s a known issue. Please see #9
We’ll have that feature working either today or tomorrow
By the way, Whether the style of
tailwindcss
cannot be used in content-script-UI.