Skip to content

Conversation

@xmok
Copy link

@xmok xmok commented Dec 25, 2025

Currently, ⁠useSQL performs an ⁠existsSync check synchronously inside ⁠useMemo. If the file is missing, this throws an error during the React render phase, causing the entire component to crash (noticed this because of raycast/extensions#23965) which means no onError 🥲.

Since ⁠baseExecuteSQL already checks for file existence, we can safely remove the lines and cause the error to be handled.

There is no test case in the tests folder but if needed, I can create one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant