Modules dont seem to be working in new updated multipage app

I have a module with some basic SQL query functions.

When I add the module to a new app in the global header or global sidebar, the actions on the module do not work. the buttons do not call the Queries etc...

only recently happening with new apps. doesn't seem to be affecting existing multipage apps. as the module works fine in those in the global header.

this is ONLY in edit mode. working fine in live / preview. anyone else facing similar issue?

Hello @Loni ,

I encountered the same issue, but I have a solution that might help. You can create or drag and drop your SQL query into the Global section instead of the Default page.

Let me know if this works for you or if you need further assistance!

Thanks.

4 Likes

Thanks for flagging this issue - I will report this bug to our team for a fix!

Hi @Loni,

I have only been able to reproduce this bug when a module button triggers a query, such as query1, and the app also has a page query with the same name, (in this example, also named query1). There shouldn't be name conflicts here, so I'm still ensuring our team is aware of this bug. So far, moving the module out of a global header/sidebar into the main app resolves it, as does renaming the query in either the app or the module. Another temporary fix could be moving the page query with the same name to global queries, as WidleStudioLLP mentions.

If you have no queries with duplicate names across the app & module, there's likely another edge case of this bug. If that is the case, could you share an export of your app?

Hi, me and my team are having similar problems to this forum post

When using modules in multipage apps, queries of the module are not being triggered. This happens only in edit mode. Different to the existing thread, there are no queries with the same name in multipage app and the module.

Especially in a source control environment it makes it really hard to test an app, when the app always needs to be published before. During testing, the inputs & outputs of modules, states of components etc. can't be monitored.

  • Details: When working on the module directly, everything works as expected, the queries are being triggered also from edit mode. Once the module is being referenced in an multipage app, it doesn't work as expected (disabled highlights are not working, queries don't trigger)

Any help or useful information would be highly appreciated! Let me know if you need further details

Hi @joshbchs,

Thanks for reaching out about this! I merged your post with the one that you linked so that we can keep all reports in one place.

I am investigating this and will keep you posted if I have any clarifying questions or updates