Skip to content

Conversation

@Himmelschmidt
Copy link
Contributor

Fixes "No FullstackContext found" error when calling server functions from background workers or other non-HTTP contexts.

Makes extraction conditional - falls back to Default::default() when no HTTP context exists.

Closes #4907

…P context

Server functions can now be invoked directly from server-side code without
requiring an HTTP request context. When called outside an HTTP handler,
extractors will use default values instead of failing, matching the behavior
of the old server_fn implementation.

Closes DioxusLabs#4907
@Himmelschmidt Himmelschmidt requested a review from a team as a code owner November 4, 2025 18:00
… called from backend

Functions with no server extractors use Default::default() and work from backend code.
Functions with extractors still require HTTP context.

Closes DioxusLabs#4907
@jkelleyrtp jkelleyrtp merged commit af215e4 into DioxusLabs:main Nov 5, 2025
18 of 19 checks passed
@Himmelschmidt Himmelschmidt deleted the fix/server-fn-backend-calls branch November 5, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants