Skip to content

Conversation

@Addonay
Copy link

@Addonay Addonay commented Oct 13, 2025

Overview

This PR introduces two new convenience hooks for the convex-svelte library: useMutation and useAction.

Changes

  • Added useMutation hook for easier mutation handling
  • Added useAction hook for easier action handling
  • Moved Convex files to src/lib/convex/ for better organization
  • Added unit tests for the new hooks
  • Added e2e tests to verify functionality
  • Refactored components for improved reusability

Backward Compatibility

There are no breaking changes. Users can continue to use client.mutation() if they prefer. These new hooks provide a more convenient alternative API.

Testing

Unit tests and e2e tests have been added to verify the new hooks work correctly. Run npm test to verify.

Additional Notes

  • Switched to Bun for dependency management (added bun.lock)
  • Updated package.json exports configuration
  • Updated dependencies to use more later versions.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@vercel
Copy link

vercel bot commented Oct 13, 2025

@Addonay is attempting to deploy a commit to the Convex Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant