Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback function inside in won't trigger Stackwise. #29

Open
Blankeos opened this issue Dec 3, 2023 · 1 comment
Open

Callback function inside in won't trigger Stackwise. #29

Blankeos opened this issue Dec 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Blankeos
Copy link
Collaborator

Blankeos commented Dec 3, 2023

Ran into a minor bug (or not), while working on: #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:

  1. 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: "",
    },
  });
  1. Save as usual

  2. Expect Bug: It won't run.

@waynehamadi
Copy link
Contributor

Thanks, on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants