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

Support shareable url with search query (q and limit) #311

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

Aprillion
Copy link
Collaborator

@Aprillion Aprillion commented Sep 3, 2023

Replacing feature from #303 to be able to share url to search results instead of just directly to answer.

Some fixes for URL state when overwriting search and using the browser back/forward buttons, seems good enough for this hidden feature, but probably not 100% bugfree yet 😅

Testable in https://stampy-ui.aprillion.workers.dev/?q=why&limit=100

app/routes/index.tsx Outdated Show resolved Hide resolved
app/routes/index.tsx Outdated Show resolved Hide resolved
app/hooks/useQuestionStateInUrl.ts Show resolved Hide resolved
app/components/search.tsx Outdated Show resolved Hide resolved
mruwnik
mruwnik previously approved these changes Sep 4, 2023
Copy link
Collaborator

@mruwnik mruwnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usual caveats apply :D

@Aprillion Aprillion merged commit 86b9ca3 into master Sep 6, 2023
1 check passed
@Aprillion Aprillion deleted the shareable-search-query branch September 6, 2023 07:58
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.

2 participants