Commit Graph
5 Commits
Author SHA1 Message Date
Himmelschmidt af215e4e80 Fix server functions failing when called from backend code (#4908)
* fix(fullstack-macro): allow server functions to be called without HTTP 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 #4907

* fix(fullstack-macro): allow server functions without extractors to be called from backend

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

Closes #4907
2025-11-05 14:46:01 -03:00
Himmelschmidt 791fa4be7b Replace unwraps with proper error handling in fullstack client (#4915) (#4916) 2025-11-05 14:45:21 -03:00
Himmelschmidt 5591070e92 Fix rustc wrapper to read command files for linking detection (#4481)
* Fix rustc wrapper to read command files for linking detection

* fix formatting for cargo fmt check
2025-08-05 10:24:28 -07:00
Himmelschmidt 4cb32d372b Fix Tailwind race condition in fullstack serve mode (#4433)
Skip Tailwind watcher in fullstack mode to prevent race conditions between
the watcher and prebuild() both trying to install/run Tailwind simultaneously.

In fullstack mode, the client build's prebuild() properly handles Tailwind
generation, making the watcher redundant and problematic.

Fixes "Text file busy" error when running:
dx serve --fullstack true --platform web

Fixes #4431
2025-07-18 11:09:08 -07:00
Himmelschmidt b82ba85653 Add PartialEq and Eq derives to ServerFnError (#4393)
This fixes the missing `PartialEq` implementation for `ServerFnError` in v0.7.0-alpha.2 which was breaking `use_memo` functionality.

Closes #4387
2025-07-08 13:24:34 -04:00