Hi,
I’m building a Qwik app which is a basic website, but where i can switch between different datasets. In that dataset, i got navigation infos (links in the navbar are supposed to change when switching dataset).
So i have a section for my navbar in Builder UI, where i want to repeat a clickable text item for each navigation item.
So i need to query the right dataset depending on a property in the state of my navbar section.
In Classic UI Mode, i added an entry in Connect Data with a custom query (single result), “where Name > Custom Query > {”$eq": state.navName}
But it always return the same dataset which is the first in the set of all my datasets, whatever state.navName is.
What am i doing wrong ?
Here is the state in my section :
-
state: {navigation: Object, isBrowser: true, isServer: false, location: Object}
-
navigation: Object
1. ▶data: Object
1. ▶links: Array(2)
1. ▶0: Object
1. url: "sdfsdf"
2. label: "L'équipe"
2. ▶1: Object
1. url: "#"
2. label: "L'agence"
-
isBrowser: true
-
isServer: false
-
location: Object
Builder content link
Builder public api key
32a9ddc3b21b41788dd2af5128ac8678