-
Notifications
You must be signed in to change notification settings - Fork 139
fix(fe): get data based on the app type on connect page #3574
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
fix(fe): get data based on the app type on connect page #3574
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to 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. |
Pull Request ReviewSummaryThis PR makes two changes to the frontend:
Code Quality & Best Practices✅ Positive Observations
|
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Graphite Automations"Test" took an action on this PR • (12/02/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
Merge activity
|
### TL;DR Fixed a route path and improved hook usage in the namespace connection flow. ### What changed? - Fixed the route path in `create-namespace-frame.tsx` by removing the trailing slash from `"/_context/"` to `"/_context"` - Refactored the `usePublishableToken` function in the namespace connect page to avoid unnecessary hook calls when they're not needed for the current app type - Added appropriate biome-ignore comments to handle lint warnings for hooks used within conditional blocks ### How to test? 1. Verify that namespace creation works correctly 2. Test the connect page in both cloud and engine contexts to ensure tokens are properly retrieved 3. Confirm that no React hook rules are violated during runtime ### Why make this change? The trailing slash in the route path could cause routing issues. The hook refactoring improves code efficiency by only calling the relevant data provider hooks based on the current app type, rather than always calling both hooks regardless of which one is needed.

TL;DR
Fixed a route path and improved hook usage in the namespace connection flow.
What changed?
create-namespace-frame.tsxby removing the trailing slash from"/_context/"to"/_context"usePublishableTokenfunction in the namespace connect page to avoid unnecessary hook calls when they're not needed for the current app typeHow to test?
Why make this change?
The trailing slash in the route path could cause routing issues. The hook refactoring improves code efficiency by only calling the relevant data provider hooks based on the current app type, rather than always calling both hooks regardless of which one is needed.