You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a module to handle some common tasks across my applications, that will perform some queries and provide some output data for apps to use. There are no UI components in this module, and it is intended to be hidden from the UI inside the apps. When this module is hidden, in edit mode everything works as expected. The module performs its work, executes a success event, and triggers the apps to begin performing subsequent work.
However, in preview/view modes, the module does not perform the intended work, and the success event never fires, preventing the apps from beginning performing their work.
Due to the discrepancy between edit and view modes in this instance, it seems this behavior is not intentional. A hidden component is not necessarily intended to be disabled, as per my understanding.
If this is intentional, how could a developer group a batch of queries/transformers/temporary state objects together that are intended to perform a specific task together, to be able to reuse this in multiple apps?
Expected Behavior
If a module is used inside an app, and it is hidden, it should not be disabled.
Steps to reproduce
Create a new module.
Create some query that the module can execute on page load.
Create an event to fire upon completion of the query run (not an event handler, but a module event.)
Add a success event handler on the query created, and on success, trigger the module event.
Publish the module, and add it to an app.
On the app module properties, in the "hidden" property, set it to "true". The module will hide. In edit mode, the module should trigger the event successfully.
Switch to preview/view mode. The module will not execute and will not trigger the event successfully.
Environment
Using a synced fork of the main branch. Currently 10 commits ahead of main branch.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
I created a module to handle some common tasks across my applications, that will perform some queries and provide some output data for apps to use. There are no UI components in this module, and it is intended to be hidden from the UI inside the apps. When this module is hidden, in edit mode everything works as expected. The module performs its work, executes a success event, and triggers the apps to begin performing subsequent work.
However, in preview/view modes, the module does not perform the intended work, and the success event never fires, preventing the apps from beginning performing their work.
Due to the discrepancy between edit and view modes in this instance, it seems this behavior is not intentional. A hidden component is not necessarily intended to be disabled, as per my understanding.
If this is intentional, how could a developer group a batch of queries/transformers/temporary state objects together that are intended to perform a specific task together, to be able to reuse this in multiple apps?
Expected Behavior
If a module is used inside an app, and it is hidden, it should not be disabled.
Steps to reproduce
Environment
Using a synced fork of the main branch. Currently 10 commits ahead of main branch.
Additional Information
No response
The text was updated successfully, but these errors were encountered: