Closed dc198689 closed 1 year ago
Your effect had no dependencies and you might have strict mode on
@JoviDeCroock P.S I found that if I removed the import { signal } from '@preact/signals-react', thats work for me. I want to use @preact/signals-react tools.
I pretty sure I have not use the StrictMode of my react version
Going to close this out. As mentioned, you probably have strict mode on which would cause this behavior.
Hi, I have a issue and hope someone to help fix.
My useEffect (ComponentDidMount) are trigger twice when page load !! P.S I found that if I removed the import { signal } from '@preact/signals-react', thats work for me. I want to use @preact/signals-react tools.
` import React, { useEffect } from 'react'; import { signal } from '@preact/signals-react';
const Scenes = (props) => {
} export default Scenes; `