interactions on click actions doesn't work (GlobalActionsProvider actions) on buttons

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)

I’m trying to add interaction actions to a button

But after publish clicking on the button and inspecting network tab in the inspector it shows no calls to any server actions that was exposed through “GlobalActionsProvider”.

However if I switch to “integrations” and modify data that way, it works.

This is how I register global context

This is how global context is being exposed

NOTE:
Seems like if I move the function to DataProvider, it works. This seems to be a GlobalActionsProvider specific issue. Am I using it wrong?

Same issue here

Hello @penn_su,

Can you provide more information and/or a minimal reproducible project?

How did you publish the project? Were the registered components available in the published site?

I basically create a global context, within the global context (you see in the screenshot I shared), I wrap it with both dataprovider and globalactionsprovider.

But no matter what I do, globalactionsprovider never trigger the functions (I use console.log to log) but if I use the ones from dataprovider it works.

Hi, we are unable to reproduce the error. Please consider collabarating with us so that we can further investigate the issue, you can see how to do it in Collaborating with Plasmic | Learn Plasmic.