Skip to content

Commit

Permalink
chore(deps): update v0.3.3 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Jul 15, 2024
1 parent 3d34545 commit 0cc2969
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 64 deletions.
1 change: 1 addition & 0 deletions remix-tutorial/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
.wrangler
8 changes: 4 additions & 4 deletions remix-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"cf-release": "cd misc/cloudflare-workers && wrangler deploy"
},
"dependencies": {
"@hiogawa/react-server": "0.3.0",
"react": "19.0.0-rc-c21bcd627b-20240624",
"react-dom": "19.0.0-rc-c21bcd627b-20240624",
"react-server-dom-webpack": "19.0.0-rc-c21bcd627b-20240624"
"@hiogawa/react-server": "0.3.3",
"react": "rc",
"react-dom": "rc",
"react-server-dom-webpack": "rc"
},
"devDependencies": {
"@hiogawa/utils": "1.6.4-pre.2",
Expand Down
73 changes: 32 additions & 41 deletions remix-tutorial/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions remix-tutorial/src/routes/_action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@ export async function actionDeleteContact(id: string) {
const contact = await fakeContacts.get(id);
tinyassert(contact);
fakeContacts.destroy(contact.id);

// TODO
// action response stream renders `src/routes/contacts/[contactId]/page.tsx`
// but contact doesn't exists anymore and server component throws,
// which makes this redirect error to not caught by client
// when users don't have custom error page
throw redirect("/");
}
12 changes: 0 additions & 12 deletions remix-tutorial/src/routes/error.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion remix-tutorial/src/routes/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function Layout(props: LayoutProps) {
</a>
</h1>
<div>
<LinkForm action="/" id="search-form" role="search" revalidate>
<LinkForm action="/" id="search-form" role="search" revalidate="/">
<input
aria-label="Search contacts"
id="q"
Expand Down

0 comments on commit 0cc2969

Please sign in to comment.