sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.17k stars 143 forks source link

Feat: Hooks for Lambda handlers #224

Open jayair opened 3 months ago

jayair commented 3 months ago

Request for adding this to Ion https://docs.sst.dev/clients#hooks

https://discord.com/channels/983865673656705025/1177071497974648952/1228266409210150974

nowlena commented 3 weeks ago

Second this!

I'm using Ion for infra only with the non-Ion NPM package because I have these hooks throughout my codebase.

It's becoming problematic because I can't import { Resource } from "sst" to reference my infra since I am still using this older version of the node package.

Looking forward to having ApiHandler, GraphQLHandler, useQueryParam, useCookie, useResponse etc. brought over into the Ion npm package