Skip to content

Conversation

skryukov
Copy link
Contributor

@skryukov skryukov commented Aug 21, 2025

This PR addresses multiple things:

  • makes sure errors params are always returned (important for cases when partial request returns errors)
  • introduces a new config that makes errors hash always being present in the response (with an option to turn it off) See the protocol for more info: https://inertia-rails.dev/guide/the-protocol#the-page-object
  • updates generator's initializer template

@skryukov skryukov force-pushed the fix-errors-with-partials branch from 9fd3308 to 6450b64 Compare August 21, 2025 19:36
@bknoles
Copy link
Collaborator

bknoles commented Aug 28, 2025

This looks good to me! I like the existing-app-friendly deprecation path.

Could you add a quick spec for the always return errors case? It'd be nice to have that documented in the specs

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