Closed nagauta closed 4 months ago
Thank you for opening this issue!
🔔 @rgomezcasas @bromanko @crisboarna @andreaselia @rtyke @karolre @Aiee @a-laughlin @tleo19 you might want to have a look.
This will happen with other browser extensions like MS Edge, as they use Chromium.
This issue has been automatically marked as stale because it did not have any recent activity.
It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊
This issue has been automatically closed due to inactivity.
Feel free to comment in the thread when you're ready to continue working on it 🙂
You can also catch us in Slack if you want to discuss this.
Extension
https://www.raycast.com/Codely/google-chrome
Description
overview
The "New Tab" command crashes upon the first start or when a new profile is added.
hypothesis
I suspect this bug is related to the implementation found here, potentially violating React's rules of hooks under specific conditions:
case1
Initially, the profile count is 0. After loading, the count increases, as seen here. UseSQL, which incorporates hooks, is then executed repeatedly.
case2
Upon adding a new profile, the initial rendering shows more than one profile. The profile count continues to increase after loading, as mentioned above. Again, UseSQL is executed in a loop, causing potential issues.
about error output
there's error outputted in terminal below.
Steps To Reproduce
Pattern A:
Pattern B:
Current Behaviour
Expected Behaviour