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: Adding tanstack query wrapper around LocalService #5111

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

AdityaHegde
Copy link
Collaborator

@AdityaHegde AdityaHegde commented Jun 20, 2024

Splitting out tanstack wrapper around LocalService from #5106

Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

I think it only works for React out of the box, but did you look into whether there's anything useful in https://github.com/connectrpc/connect-query-es?

Comment on lines 16 to 17
import type { RpcStatus } from "@rilldata/web-common/runtime-client/gen/index.schemas";
import type { ErrorType } from "@rilldata/web-common/runtime-client/http-client";
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it use the Connect error types instead of the ones from Orval? See https://connectrpc.com/docs/web/errors

Comment on lines 4 to 7
import type {
CreateMutationOptions,
CreateQueryOptions,
} from "@rilldata/svelte-query";
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it use @tanstack/svelte-query? That is used below for import { createMutation, createQuery }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True.

@begelundmuller begelundmuller merged commit 5f72e62 into main Jun 20, 2024
4 checks passed
@begelundmuller begelundmuller deleted the adityahegde/local-service-wrappers branch June 20, 2024 11:06
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