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

Error in useLiveQuery (Vue.js): Missing parameters when using query without empty parameter array #448

Open
hichem-dahi opened this issue Nov 30, 2024 · 0 comments

Comments

@hichem-dahi
Copy link

I encountered an issue while using useLiveQuery without a second parameter array:

const products = useLiveQuery('SELECT * FROM products;') This causes the following error:


Uncaught (in promise) error: could not determine data type of parameter $2
    at he.Fe (...

However, the following works fine:
const products = useLiveQuery('SELECT * FROM products;', [])
It seems that useLiveQuery requires a parameter array, even if no parameters are used.

@hichem-dahi hichem-dahi changed the title Error in useLiveQuery (Vue.js): Missing Parameters When Using Query Without Empty Parameter Array Error in useLiveQuery (Vue.js): Missing parameters when using query without empty parameter array Nov 30, 2024
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

No branches or pull requests

1 participant