-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marquee not change loop children when children is input and change value of input #287
Comments
Sorry not really following. Would be great if you could provide an example on stackblitz? Could fork https://stackblitz.com/github/tjenkinson/dynamic-marquee/tree/master/demo?title=Dynamic%20Marquee%20Demo&file=src%2Fmain.ts |
with code: import * as React from 'react'; import './style.css'; export default function App() { React.useEffect(() => { return ( <div onClick={() => setItems((pre) => pre.concat(1))}>Button {items.map((item, index) => ( {index} ))} ); } item incorrect loop: 1 2 1 2 1 2. Please check for me! |
Hi @truongnc1 I am not sure what you are trying to do. The code doesn't actually run at all, as you can see here: https://stackblitz.com/edit/github-qnyo2f?file=src%2Fapp.tsx |
If you are able to share an example that shows your issue then I can help |
this code not return: 1 2 1 2 1 2. with rate = 0? |
The code you send doesn't run are you running something different? But your problem might be that in the loop you're returning the index not the item |
No description provided.
The text was updated successfully, but these errors were encountered: