react-play icon indicating copy to clipboard operation
react-play copied to clipboard

Fix 🐛 Bug #479: The Console has bunch of warnings

Open Sachin-chaurasiya opened this issue 2 years ago • 9 comments

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

I worked on fixing issue #479

Fixes #479

Type of change

Please delete options that are not relevant.

  • [x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

Sachin-chaurasiya avatar Aug 11 '22 11:08 Sachin-chaurasiya

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-play ✅ Ready (Inspect) Visit Preview Aug 30, 2022 at 7:44AM (UTC)

vercel[bot] avatar Aug 11 '22 11:08 vercel[bot]

Crawler error image

koustov avatar Aug 20 '22 19:08 koustov

Crawler error image

Yep, very surprisingly, it never passes.

atapas avatar Aug 22 '22 06:08 atapas

@Sachin-chaurasiya Any idea on it? I am clueless why this branch alone fails to build!

atapas avatar Aug 23 '22 03:08 atapas

@Sachin-chaurasiya Any idea on it? I am clueless why this branch alone fails to build!

Hey @atapas , I will have a look and if not working then will close this PR and open a new PR with the changes.

Sachin-chaurasiya avatar Aug 23 '22 04:08 Sachin-chaurasiya

@Sachin-chaurasiya Any idea on it? I am clueless why this branch alone fails to build!

Hey @atapas , I will have a look and if not working then will close this PR and open a new PR with the changes.

It might be because of the dependency array. I can see the quoteArray is using a spread operator so its always a new instance. @Sachin-chaurasiya can you just remove the dependency and push once image

koustov avatar Aug 23 '22 18:08 koustov

@Sachin-chaurasiya Any idea on it? I am clueless why this branch alone fails to build!

Hey @atapas , I will have a look and if not working then will close this PR and open a new PR with the changes.

It might be because of the dependency array. I can see the quoteArray is using a spread operator so its always a new instance. @Sachin-chaurasiya can you just remove the dependency and push once image

@koustov , quoteArray is being used in that effect so we should have that in dependency right? it does not matter how we are using the quoteArray, only thing matter is what variable we are using for that effect. If you want I can remove that but eslint will be complaining :)

Sachin-chaurasiya avatar Aug 24 '22 04:08 Sachin-chaurasiya

quoteArray is being used in that effect so we should have that in dependency right?

I didn't try by myself however looking at the error (time out) I can only suspect something is blocking the crawler from passing through the component. It's my educated guess that the quotearray might be the issue. So what I am suggesting is, to remove the dependency and push a commit, if the crawler passes we know what was wrong and then we can take appropriate measurements before getting the PR merge. So, it's just a TRY, nothing more than that

koustov avatar Aug 24 '22 18:08 koustov

quoteArray is being used in that effect so we should have that in dependency right?

I didn't try by myself however looking at the error (time out) I can only suspect something is blocking the crawler from passing through the component. It's my educated guess that the quotearray might be the issue. So what I am suggesting is, to remove the dependency and push a commit, if the crawler passes we know what was wrong and then we can take appropriate measurements before getting the PR merge. So, it's just a TRY, nothing more than that

Sure, I will try that.

Sachin-chaurasiya avatar Aug 25 '22 09:08 Sachin-chaurasiya

Hey @koustov , Thanks man, after removing quoteArray from dependency it's working.

Sachin-chaurasiya avatar Aug 27 '22 14:08 Sachin-chaurasiya

@atapas , Waiting for your review.

Sachin-chaurasiya avatar Aug 30 '22 07:08 Sachin-chaurasiya