Skip to content
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

Cascade doesn't work on mapped components #37

Open
getnorthern opened this issue Oct 16, 2018 · 8 comments
Open

Cascade doesn't work on mapped components #37

getnorthern opened this issue Oct 16, 2018 · 8 comments

Comments

@getnorthern
Copy link

Hi,

If I use something like the following:

<Fade bottom cascade duration={1000}> <div> {MY_DATA.options.map((option) => ( <RadioButton key={option.value} label={label} option={option} answerValue={answerValue} onRadioSelected={onOptionSelected} /> ))} </div> </Fade>

...the cascade doesn't work - all the mapped items (RadioButtons) fade in at the same time. Am I setting this up incorrectly, or is this a limitation?

Thanks for all your work on this. :)

@jdockwarder
Copy link

Same problem here!

@PeterKottas
Copy link

I would consider adding Fade wrapper and setting delay based on the index in map function. I assume the cascade does something similar internally.

@wievtsal
Copy link

wievtsal commented Feb 11, 2020

Same problem.
But we have one solution - use it without mapped component:

<Fade cascade top>
  <div>
    {items.map(item => (
       <div>{item}</div>
    )}
  </div>
</Fade>

@LhonRafaat
Copy link

Same problem in oct 2020

@ajmeese7
Copy link

+1, still experiencing this issue. Any help would be greatly appreciated :) I'm at my wit's end on this one

@amingarro
Copy link

Same problem in August 2021

@Fardeen-Awais
Copy link

I have the same issue and still facing this in 26 Oct 2022

@Fardeen-Awais
Copy link

I Solved this solution by adding
import config from 'react-reveal/globals';
config({ ssrFadeout: true });

After importing this i can use the effect like this below:
//Content

Reference : https://www.react-reveal.com/docs/
Read the server Side rendering
I hope this will help you up reply me with your email address

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

8 participants