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

feat(svelte): add first class reexecute to svelte #3472

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

JoviDeCroock
Copy link
Collaborator

@JoviDeCroock JoviDeCroock commented Dec 23, 2023

Resolves #3221

Summary

This adds back a way to reexecute queries arbitrarily in svelte's query-store. It has been a while since I touched wonka and it was a learning experience all over again 😅 love the types though, they really go so far in helping out in figuring all of this out

@JoviDeCroock JoviDeCroock requested a review from kitten December 23, 2023 07:15
Copy link

changeset-bot bot commented Dec 23, 2023

🦋 Changeset detected

Latest commit: d91712f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@urql/svelte Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

packages/svelte-urql/src/queryStore.ts Show resolved Hide resolved
@@ -151,15 +155,20 @@ export function queryStore<
return concat<Partial<OperationResultState<Data, Variables>>>([
Copy link
Member

Choose a reason for hiding this comment

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

Let's invert this here so fetching: true applies, i.e. placing concat inside switchMap

JoviDeCroock and others added 2 commits February 2, 2024 15:57
Co-authored-by: Phil Pluckthun <phil@kitten.sh>
@JoviDeCroock JoviDeCroock requested a review from kitten February 2, 2024 17:04
@JoviDeCroock JoviDeCroock merged commit 5b6449e into urql-graphql:main Feb 2, 2024
13 checks passed
@github-actions github-actions bot mentioned this pull request Feb 2, 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

Successfully merging this pull request may close these issues.

Add reexecute() to @urql/svelte (again!)
2 participants