window.appActions not working in new update


#1

Hello I am unable to use window.appActions in projects created with the new update. But projects created before update are still working.

To test i put onClick event when clicking a button.

I put the following when onClick a button:

console.log(window.appActions)
But it shows ‘undefined’.


#2

I noticed it still works when using:

this.props.appActions


#3

Hi, actually we aren’t intentionally enabling window.appActions in our code so it shouldn’t have worked even before. this.props.appActions is the official supported way to do it.

Are you sure you haven’t enabled window.appActions in your custom code somewhere in your project? Maybe we changed something and it’s not called properly anymore. Could you please send us the working version of the project to hello@neonto.com so we could further investigate it?