Skip to content

Commit a991ed6

Browse files
author
Andres Jimenez
committed
chore: remove react-app-router-rsc app and fix type issues
- Delete the entire react-app-router-rsc application as it is no longer needed - Fix TypeScript compilation error in react/query package by enabling declaration output - Fix type conflict in remix runtime by adding a safe redirect init type - Add FormData type guard in remix action handlers to prevent runtime errors - Correct project.json structure for react-app-spa by moving lint target
1 parent 2809993 commit a991ed6

24 files changed

Lines changed: 14 additions & 636 deletions

File tree

‎apps/react-app-remix/app/routes/demo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const action = withActionEffect(
3535

3636
// Get form data
3737
const formData = yield* Effect.tryPromise(() => request.formData())
38-
const actionType = formData.get("actionType") as string
38+
const actionType = formData instanceof FormData ? formData.get("actionType") as string : ""
3939

4040
yield* Effect.log("Demo action called with type:", actionType)
4141

‎apps/react-app-remix/app/routes/test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const action = withActionEffect(
1919

2020
// Get form data
2121
const formData = yield* Effect.tryPromise(() => request.formData())
22-
const inputValue = formData.get("inputValue") as string
22+
const inputValue = formData instanceof FormData ? formData.get("inputValue") as string : ""
2323

2424
yield* Effect.log("Form value received:", inputValue)
2525

‎apps/react-app-router-rsc/.gitignore‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎apps/react-app-router-rsc/README.md‎

Lines changed: 0 additions & 71 deletions
This file was deleted.

‎apps/react-app-router-rsc/package.json‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎apps/react-app-router-rsc/project.json‎

Lines changed: 0 additions & 46 deletions
This file was deleted.
-14.7 KB
Binary file not shown.

‎apps/react-app-router-rsc/server.js‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎apps/react-app-router-rsc/src/entry.browser.tsx‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎apps/react-app-router-rsc/src/entry.rsc.tsx‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)