-
Notifications
You must be signed in to change notification settings - Fork 123
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
refactor(core): homepage #1386
refactor(core): homepage #1386
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Skipped Deployments
|
e6981aa
to
2470313
Compare
// eslint-disable-next-line @typescript-eslint/require-await | ||
export const search = async (formData: FormData) => { | ||
const searchTerm = z.string().parse(formData.get('searchTerm')); | ||
|
||
if (searchTerm) { | ||
redirect(`/search?term=${searchTerm}`); | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like server actions need to be async functions, but there's no async function inside this. Is this the best way to solve this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this to be a server action? Could it be a client side router.push
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed an update to just use the client.
8a66729
to
b20fe7c
Compare
2196332
to
7869865
Compare
7869865
to
73da89b
Compare
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-latest-jalyxo6ya-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
e91a41a
to
bdee7aa
Compare
What/Why?
Testing
Locally.