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
how to access the results based on the query from the url #809
Comments
Not easy to do yet, need to build in a way to support this but for time being https://github.com/searchkit/searchkit/blob/next/packages/searchkit-client/src/searchkit.tsx#L152 One proposal i've got is allow to pass via a prop a function to run to build the initial search state
as a searchkit supported way. For now if you dont want to PR a feature, you could hack it by recreating searchkitProvider and calling the client.setQuery(queryParam) before you trigger search
|
i am still not getting the context can you make example for the above one |
* build: add debugger for searchkit/client * chore: update react types dep to 17 * docs: split guides and docs into seperate sections * fix js error when run locally * remove unneeded react types * fix: fix error where input was uncontrolled * feat(searchbar): if query is set, use it as default value #809 * feat: allow query to be adjusted #806 * bump to rc20
Hey so tried this out, you will need RC20 for it to work too. |
How to fetch the results based on the url similear below in version 3.0
https://xyz.com/search?q=react%20js
The text was updated successfully, but these errors were encountered: