stackwise
stackwise copied to clipboard
Callback function inside `in` won't trigger Stackwise.
Ran into a minor bug (or not), while working on: https://github.com/stackwiseai/stackwise/pull/28. Basically, passing a callback function inside in
. Do let me know if this should be supported by Stackwise or not. I tested this without the callback and the extension ran just fine.
To reproduce:
- Have a stack that has a callback as an
in
e.g.
// index.test.ts
const channel_name = "schema-db-changes";
const callback_function = (payload) => {
console.log("Database has changed!:", payload);
};
stack("Listen to database changes using supabase", {
in: {
channel_name: channel_name,
callback: callback_function,
},
out: {
channel: "",
},
});
-
Save as usual
-
Expect Bug: It won't run.
Thanks, on it