-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I originally planned to make @zely-js/optimizer
for server data, but it was canceled due to serpack limitations.
Instead, I am developing a different way to store server data, inspired by famous frontend frameworks.
function fn(ctx: StoreContext) {
return `Hello ${ctx.params.id}`;
}
export default [
GET(async (ctx) => {
const { data, id } = await $store(fn);
return data;
}),
];
You can access the server data from other files through the unique ID value.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request