Skip to content

how works dataLength ?, different result when is a static number #373

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

Open
kypanz opened this issue Feb 14, 2023 · 1 comment
Open

how works dataLength ?, different result when is a static number #373

kypanz opened this issue Feb 14, 2023 · 1 comment

Comments

@kypanz
Copy link

kypanz commented Feb 14, 2023

Hello i am curious about how this works, let me explain

if i put in dataLength for example : arrExample.length works fine, but if i put a number , for example 20 , 1 or anothers, this only render one time ? , why this happend ?

the documentation says : set the length of the data.This will unlock the subsequent calls to next.

i am not sure but i have my theory, in this case the arrExample.length works fine beacuse every time is called the next function is re-rendered with a new value, for example if arrExample.length = 20 in the first render and in the second has 40 has value this means this only need a different number every time has re-rendered and not care if it is a any number, i only courious about this

i am right ?, how works internally ? , please if i am wrong let me know i wanna know why this happend

thanks for read and have a nice day ❤️

@Zzdl
Copy link

Zzdl commented Sep 12, 2023

I think that's what it looks like, but no one explains it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants