Open Esshahn opened 2 years ago
I got the same problem...
I found out that it's related with create react app, but I don't know why. I switched to Vite and it worked then.
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client";
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
which produced the error, switching it to
import { render } from "react-dom";
render(<App />, document.getElementById("root"));
made it work. Hope that helps.
Platform: - Next.js File:- next.config.js
#Issue Solve... Solution:- Change reactStrictMode value TRUE to FALSE
======= Code =======
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
};
module.exports = nextConfig;
With react 18 strict mode enable useEffect to run twice in development, that's why this library might be bugged
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client"; ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode> )
which produced the error, switching it to
import { render } from "react-dom"; render(<App />, document.getElementById("root"));
made it work. Hope that helps.
This worked for me thanks!!!
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client"; ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode> )
which produced the error, switching it to
import { render } from "react-dom"; render(<App />, document.getElementById("root"));
made it work. Hope that helps.
This works for me as well. Thanks
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client"; ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode> )
which produced the error, switching it to
import { render } from "react-dom"; render(<App />, document.getElementById("root"));
made it work. Hope that helps.
this worked for me too thanks for the help.
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client"; ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode> )
which produced the error, switching it to
import { render } from "react-dom"; render(<App />, document.getElementById("root"));
made it work. Hope that helps.
This did it for me!
I've investigated more an found the difference that made it work for me. Before I used:
import ReactDOM from "react-dom/client"; ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode> )
which produced the error, switching it to
import { render } from "react-dom"; render(<App />, document.getElementById("root"));
made it work. Hope that helps.
It worked for me too
i got the same issue [ { id: '1', message: 'Welcome to InfoPRO', trigger: '2' }, { id: '2', message: 'Hi! Guest. Thanks for your interest. In case we get disconnected, Please provide your email address formore', trigger: 'Checkemail' }, { id: 'Checkemail', user: true, validator: (value) => { if (!value.match(/^[\w-]+(.[\w-]+)*@([\w-]+.)+[a-zA-Z]{2,7}$/)) { return 'Please provide a valid email address.'; } return true; }, trigger: 'mailthanks', }, { id: 'mailthanks', message: 'Thanks! ', trigger: 'option', }, { id: 'option', message: 'Choose the Options', end: true }, ]
Platform: - Next.js File:- next.config.js
#Issue Solve... Solution:- Change reactStrictMode value TRUE to FALSE
======= Code =======
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, swcMinify: true, }; module.exports = nextConfig;
yes its work fine, thanks to resolve this doubling issue - see the example of implementation - https://shitalacademy.com
Platform: - Next.js File:- next.config.js #Issue Solve... Solution:- Change reactStrictMode value TRUE to FALSE ======= Code =======
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, swcMinifs y: true, }; module.exports = nextConfig;
yes its work fine, thanks to resolve this doubling issue - see the example of implementation - https://shitalacademy.com
how to you style this component
Platform: - Next.js File:- next.config.js #Issue Solve... Solution:- Change reactStrictMode value TRUE to FALSE ======= Code =======
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, swcMinifs y: true, }; module.exports = nextConfig;
yes its work fine, thanks to resolve this doubling issue - see the example of implementation - https://shitalacademy.com
how to you style this component
define -> const theme in top and use theme in "themeprovider"
Thanks Noted
Platform: - Next.js File:- next.config.js
#Issue Solve... Solution:- Change reactStrictMode value TRUE to FALSE
======= Code =======
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, swcMinify: true, }; module.exports = nextConfig;
Thanks for your helping !
Describe the bug Messages are doubled with each new trigger.
To Reproduce Steps to reproduce the behavior:
Expected behavior messages should appear only once, as defined in the code. Instead, they appear multiple times (see screenshot)
Desktop (please complete the following information):
Code