Skip to content
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

Possible bug with middleware typings #3060

Open
arackaf opened this issue Dec 24, 2024 · 0 comments
Open

Possible bug with middleware typings #3060

arackaf opened this issue Dec 24, 2024 · 0 comments

Comments

@arackaf
Copy link
Contributor

arackaf commented Dec 24, 2024

Which project does this relate to?

Router

Describe the bug

Possibly invalid type error

Your Example Website or App

https://github.com/arackaf/tanstack-start-blog-dataloading/tree/special/start-bug-1

Steps to Reproduce the Bug or Issue

This repo https://github.com/arackaf/tanstack-start-blog-dataloading/tree/special/start-bug-1 -- note the branch! special/start-bug-1
npm i

open routes/app/epics/$epicId/edit.tsx

Note the middleware - lines 20 and 40

Basically I'm trying to add some context on the server, AFTER the serverFn runs, and then read that context on the client. Both error out with TS, currently. Not sure if it's a bug, or a skill issue on my part :)

Expected behavior

no errors

Screenshots or Videos

n/a

Platform

n/a

Additional context

No response

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

No branches or pull requests

1 participant