chore(core): update createRivetKit to accept a client options#1392
chore(core): update createRivetKit to accept a client options#1392NathanFlurry wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @NathanFlurry's task —— View job Code Review Complete ✅I've thoroughly analyzed this PR. Here's my comprehensive review: Review Checklist:
SummaryThis PR refactors the ✅ Positive Aspects
🔍 Code Quality & Best Practicespackages/react/src/mod.ts:17-25Excellent: The implementation correctly wraps export function createRivetKit<Registry extends AnyActorRegistry>(
clientInput: Parameters<typeof createClient>[0],
opts: CreateRivetKitOptions<Registry> = {},
) {
return createRivetKitWithClient<Registry>(
createClient<Registry>(clientInput),
opts,
);
}Example ConsistencyGood: All examples consistently updated from: // Before
const client = createClient("http://localhost:8080");
const { useActor } = createRivetKit(client);
// After
const { useActor } = createRivetKit<typeof registry>("http://localhost:8080");🚀 Performance ConsiderationsNeutral Impact: No performance concerns identified. The change simply moves client creation inside the function rather than requiring it externally. 🔒 Security AssessmentNo Issues: The change doesn't introduce new security vectors. Client configuration still goes through the same validation in 🧪 Test CoverageNeeds Attention:
🔄 Backward CompatibilityExcellent: The old API is preserved via
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
More templates
@rivetkit/actor
@rivetkit/cloudflare-workers
@rivetkit/core
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
commit: |
Merge activity
|

No description provided.