Skip to content

fix: async route typing#1510

Merged
marvinhagemeister merged 1 commit into
mainfrom
fix-async-route-typing
Jul 24, 2023
Merged

fix: async route typing#1510
marvinhagemeister merged 1 commit into
mainfrom
fix-async-route-typing

Conversation

@iuioiua

@iuioiua iuioiua commented Jul 24, 2023

Copy link
Copy Markdown
Contributor

The ctx.state type can now be passed in an async route component. I omitted tests, as this is just a matter of typing. Happy to add some if they're deemed needed.

Fixes #1509
Related denoland/saaskit#393 (comment)

@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.

Oh great catch! Thanks for adding this 💯

@marvinhagemeister marvinhagemeister enabled auto-merge (squash) July 24, 2023 08:21
@marvinhagemeister marvinhagemeister merged commit 0b96db4 into main Jul 24, 2023
@marvinhagemeister marvinhagemeister deleted the fix-async-route-typing branch July 24, 2023 08:22
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.

bug: AsyncRoute doesn't support passing state type variable

2 participants