Skip to content

Conversation

fehnomenal
Copy link

Before this change you would just get a "generic" ServerLoadEvent, i.e. without params or route id set:

grafik

Adding satisfies LayoutServerLoad to the passed function works but gives an error about the route id:

grafik

  Type 'string | null' is not assignable to type 'LayoutRouteId'.
    Type 'string' is not assignable to type 'LayoutRouteId'.ts(2345)

After this change no error is shown and not even the satisfies is needed (at least for autocomplete; I think eslint still requires it).

@fehnomenal fehnomenal marked this pull request as ready for review April 25, 2025 09:09
@ciscoheat
Copy link
Owner

Thank you! Will merge asap when I've checked it out locally.

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.

2 participants