Wappler Version: 6.0.0 Beta 15
Operating System: Windows 11
Server Model: Node
Database Type: N/A
Hosting Type: N/A
Expected behavior
I’m not entirely sure if this is a bug/defect or if I need to always set the query manager on page load. I’m using the Query Manager and it appears to work in most cases, but when the page is refreshed or a link is shared, then the Query Manager is not set.
Actual behavior
It appears there are two slightly different objects. The first is the Query Manager and the second is the actual query. I’m not sure why these are somehow related but not in sync.
This leads to parts of the code in my app having slight differences. Like query1.remove('t')
and dmx-class:show-ibx="query.t"
So when you navigate to http://localhost:59540/html/apps/mailbox.html?t=18b6c2d3617b92a3
and have something like this <a dmx-on:click="query1.remove('t')">
on the page, then query1 isn’t set. So query1.remove('t')
does not remove the value from query.t
.
I was curious if I could perform a remove directly on the query
, but the only action is to remove from the query manager.
It seems odd to need to set the query manager on page load, but if that is the recommended option, then I’ll proceed with setting that up.
How to reproduce
- Setup a query manager
- Somehow set a param in the manager
- Refresh the page and check the query manager value in console