Ben Holmes
Ben Holmes
@ascorbic That's fair! I agree that's a better name, happy to use it.
@ascorbic Thinking it over, went with `getActionProps()`. Thought it paired nicely with `Astro.getActionResult()` to retrieve the return value.
Thanks for the overview @matthewp. Actually, I would not consider the `action` suggestion incomplete! An alternative may be to pass a `?queryParam` from his proposed `getActionUrl()`. This lets us use...
@matthewp Well I should clarify: **the action would NOT be a URL. It would be a query param to re-request the current page.** ```html ``` This does the same work...
@wesleycoder that could be a bug! I'll investigate
Thanks for following up @wesleycoder! In hindsight, I should've suggested an issue instead of tracking myself. I knew I would be stepping away from actions for the following few weeks,...
Haven't missed your comments @firxworx! All valid concerns here. There's some nuance to the API choices I could detail, but I'm not 100% sure on them. I'll take a second...
Missed your note on serializing complex objects @ernestoalejo. You're correct that we only allow JSON serializable inputs, though we don't document this in the RFC. We avoided superjson to keep...
@Princesseuh I agree with this! During goal setting, we also found a more fundamental issue following SvelteKit's spec for look-behind files: all pages with a `page.ts` defined would be server...
# Where should actions live? I want to outline a few places where actions may be defined: 1. **In the `.astro` component itself.** We explored this early on since it...