-
Notifications
You must be signed in to change notification settings - Fork 24
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
Switch to root folder if current folder cannot be loaded #7669
Conversation
I’m afraid this doesn’t quite work for me yet 😬 It looks like some folders briefly flash but then it switches to the blank version again after a few ms. Does it work for you, did you test with refresh-schema? I don’t know what’s different, maybe it’s a firefox vs chrome thing? 🤔 |
Initially, I simply tried It's a bit annoying to test since refreshing the schema takes so long. Do you know whether there is a faster way to clear the folders? |
I’m afraid manually editing folders in the DB is not going to be simpler or faster than yarn refresh-schema :/ |
Please try again! I think it already worked before, but there was quite a bit of a delay until the switch would happen. The active folder is fetched and if that fails, it is retried three times. Due to an exponential back off in the delay time (default of react-query), this took at least 6 seconds. Now, it's down to 1.5s. I hope this wait is acceptable :) By the way, deleting the |
Yes, seems to work now, this is great! One more tiny thing: could the error toast saying »could not find the requested folder« also vanish after some seconds? If that would be simple, I’d appreciate it, otherwise this change as it is also helps me a lot already :) |
Unfortunately, it's not trivial :S |
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)