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

Everything vanishes on filtering levels using Google Chrome #40

Closed
bodhwani opened this issue Jul 17, 2020 · 15 comments
Closed

Everything vanishes on filtering levels using Google Chrome #40

bodhwani opened this issue Jul 17, 2020 · 15 comments
Assignees
Labels

Comments

@bodhwani
Copy link

As I filter anything, everything vanishes.
It is working fine on safari, but not on Google Chrome. Please check whats the issue.

@seanprashad
Copy link
Owner

seanprashad commented Jul 17, 2020

Hey @bodhwani - thanks for reaching out!

Are you able to tell me the following:

  • Version of Chrome
  • Are you on mobile?
  • Have you "checked" off any questions as completed?
  • What is the minimum filtering options for "everything to vanish"? For example, if you select only "Medium" questions, do all questions dissapear? What happens if you select "Medium" difficulty with the company "Google"?
  • What errors, if any, appear in Chrome's developer console?

These will give me a head start into debugging what might be happening - thanks!

@seanprashad seanprashad self-assigned this Jul 17, 2020
@bodhwani
Copy link
Author

Version is
"Version 83.0.4103.116 (Official Build) (64-bit)"
I am on Mac OS
Mark question: Yes I tried. It is not working
If I try any filter, everything vanishes. Hope that helps!

@seanprashad
Copy link
Owner

Thanks for that info @bodhwani - my first instinct is that I broke something in this patch, which automatically resizes the local storage array used to keep track of which questions have been completed when you click a checkbox.

One way would be to completely reset that array that from within Chrome, but that means you would start with every question unchecked - this will be a last resort.

Could you please browse to https://seanprashad.com/leetcode-patterns/ using Incognito Mode and see if you can load the website AND filter by Medium for question difficulty?

Let me know if that helps and if not, we'll try some other routes to debug since I can't reproduce the issue on my end.

@bodhwani
Copy link
Author

It works fine on Incognito Mode, but I cannot keep track of anything as I close the tab. Is there any other alternative?
Btw, how to reset the array within Chrome? @seanprashad

@seanprashad
Copy link
Owner

seanprashad commented Jul 17, 2020

Awesome @bodhwani - let's reset the array within Chrome!

  1. Please open up a regular Google Chrome tab
  2. Press Cmd + Option + J to open Developer Tools
  3. Navigate to the Application tab as shown below:
    image
  4. From the left-hand side, left click the arrow near Local Storage under Storage:
    image
  5. Select https://seanprashad.com and delete the Key called checked using Backspace
  6. Refresh the web page and try to filter by any column

Please let me know if you get stuck!

@bodhwani
Copy link
Author

Nope. Still, it is not working :(

@seanprashad
Copy link
Owner

seanprashad commented Jul 17, 2020

OK - let's try another way of deleting it:

  1. Open chrome://settings/siteData in a new tab
  2. In the top right hand corner, search for seanprashad:
    image
  3. Click the trash icon to delete local storage for seaprashad.com
  4. Next, browse to https://seanprashad.com/leetcode-patterns/
  5. Press Shift + Cmd + R to refresh the page without using cache

If the error persist, please open up Developer Console using Option + Command + J and paste any errors here, formatted in a code block

Please let me know if this works!

@bodhwani
Copy link
Author

bodhwani commented Jul 17, 2020

Still not working
Errors:

DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

@seanprashad
Copy link
Owner

Hmm.. this is super weird and that error message is for React but doesn't give us much to work with unfortunately 🤔

For now, please use the website in another web browser and keep track of your completed questions in a document of some kind - I need to take a look at the changes I've made recently in more detail and see if I can figure out the problem and push a new patched version

@seanprashad
Copy link
Owner

seanprashad commented Jul 17, 2020

@bodhwani I noticed that you are on an old version of Google Chrome - can you try updating it as per these instructions: https://support.google.com/chrome/answer/95414?co=GENIE.Platform%3DDesktop&hl=en - the version I have is Version 84.0.4147.89 (Official Build) (64-bit)

The problem could be an extension that you have installed is conflicting in some way since that would be one of the things that is disabled in Incognito mode.

@seanprashad
Copy link
Owner

seanprashad commented Jul 20, 2020

Hey @bodhwani - please let me know if this is still an issue after updating Chrome, otherwise I'll consider this fixed ✌🏽

@bodhwani
Copy link
Author

It didnt solve the issue.

@seanprashad
Copy link
Owner

Hmm this is really strange.. I have to do some more digging and think of what else we can try - please use another browser for the time being, ty!

@seanprashad
Copy link
Owner

Hey @bodhwani - another idea popped into my head to try.

Can you delete cookies for https://seanprashad.com/leetcode-patterns/ by doing the following:

  1. Open Chrome and browse to https://seanprashad.com/leetcode-patterns/
  2. Click on the lock icon to the left of the URL bar:

image

  1. Click on Cookies
  2. Remove all cookies that you see here
  3. Close Google Chrome completely
  4. Reopen Google Chrome and try to filter via any dropdown list
  5. Reply back with your findings

@bodhwani
Copy link
Author

Still didn't work :(

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

No branches or pull requests

2 participants