Skip to content

fix(server): change RouteContext data type parameter default to any#1536

Merged
marvinhagemeister merged 1 commit into
freshframework:mainfrom
deer:1528_async_route_type
Jul 28, 2023
Merged

fix(server): change RouteContext data type parameter default to any#1536
marvinhagemeister merged 1 commit into
freshframework:mainfrom
deer:1528_async_route_type

Conversation

@deer

@deer deer commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

closes #1528

I have a large comment in 1528 explaining what's going on here.

During the course of researching this, I found deno check **/*.ts to type check all the files in the project. It turns out we have this issue in our code base as well! tests/fixture_server_components/main.ts shows this exact error, because routes/context/[id].tsx and routes/fail.tsx don't qualify RouteContext with any type parameters.

In a soon-to-be-opened PR, I will suggest that we type check our entire project as part of CI. If we had always been doing this, then we would have caught this problem before users had to report an issue.

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR 👍

@marvinhagemeister marvinhagemeister merged commit 87d52e2 into freshframework:main Jul 28, 2023
@deer deer deleted the 1528_async_route_type branch July 28, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

async route incompatible with index

2 participants