Wappler Version : 6.5.4
Operating System : iOS
Server Model: node.js
Database Type: Postgres
Hosting Type: Docker
Hello everyone!
I'm having an weird behaviour in one part of my webapp... Or it's normal behaviour and I'm waiting a different one.
Well...I have one page called settings
, in this page I have on nav-list
where, clicking on each nav-Item
, it sets a value on a variable and using conditional region
, display one partial...pretty simple.
As I need to have the route changing after the item is clicked, I set one browser.goto(), internal
to set the route.
List Item:
<li class="nav-item">
<button class="nav-link btn menu-text" data-toggle="tab" dmx-on:click="run([{run:{outputType:'text',action:`var_option.setValue(\'terms\')`}},{run:{outputType:'text',disabled:true,action:`browser_main.goto(conn_user_detail.data.qry_user_detail.org_type_id==18?\'settings/terms/builder\':\'settings/terms/supplier\',true)`}}])" dmx-class:active="content.var_option.value == 'terms'">Terms</button>
</li>
The problem is, every time I access the pages using this nav-tem
it keeps loading the server, watch this small video:
It keeps adding up calls to the server actions...each time, more calls.
Removing the browser.goto(), internal
, it works fine.
Is this the expected behaviour? If yes, how can I change the routes without a full page load (without the internal
option)?
All the best and have a great week!