T
TanStack3w ago
flat-fuchsia

Integration with MSW

Has anyone integrated MSW with a TanStack Start app successfully for mocking server functions? I guess I could build the URLs that are created from the server functions for the MSW handlers, but that would probably be flaky. Also, with the new serializer used in server functions, returning a mock response properly will be a real pain. Maybe there's a better way? Thanks!
1 Reply
flat-fuchsia
flat-fuchsiaOP3w ago
ok, I just found out that server functions expose a property url. I can use it to define my MSW handlers 👍

Did you find this page helpful?