-
Notifications
You must be signed in to change notification settings - Fork 47.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SSR should not warn about onscroll #6626
Comments
@jimfb how do you guys check for SSR in the React source? Just check for a |
We have a |
So this would just entail adding a check to the |
Could be that simple. You might have some issues checking types since On Wed, Apr 27, 2016 at 11:20 AM, Brandon Dail notifications@github.com
|
@zpao Could I give it a try? |
It sounds like @aweary might be giving it a try. If not, then you are more then welcome @RaitoBezarius |
@RaitoBezarius @zpao I do have a branch setup on my fork for this, was hoping to give it a shot. If you have any insights into how you'd approach it @RaitoBezarius I'd be happy to hear them. |
@aweary @zpao Correct me if I'm wrong, but I think the solution is just to return earlier in the |
@RaitoBezarius I think checking the |
@aweary In which case, Checking the Anyway, I don't know if my idea could get wrong though, so you might be right too! This is my understanding after playing around with the debugger. |
I think at this point I would prefer we make use of the canonical source of information at that point, not environment details to. It's an explicit vs implicit difference (and the implicit could be wrong as code changes in the future). If we need we could potentially add more details to the transactions so that checking attributes is safe without adding a dependency for instanceOf. |
@zpao would adding a |
Might want to change the name (I might call it something like |
@zpao |
@zpao all of that logic in |
Ref: #631 (comment)
It's a little surprising that the codepath is even being hit, maybe that's a bug too, but there should clearly be some sort of
if
check in that area.The text was updated successfully, but these errors were encountered: