question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG | UseEffect can not be used in content-script

See original GitHub issue

What 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ColdSaucecommented, Jun 10, 2022

Yeah it’s a known issue. Please see #9

We’ll have that feature working either today or tomorrow

0reactions
zangguojuncommented, Jun 10, 2022

By the way, Whether the style of tailwindcss cannot be used in content-script-UI.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found