Quasar Tree returning too much data when all items are selected
I'm using the Quasar Tree to have a compact control in which to include Regions, Countries, and States from around the world, for a search criteria. I'm currently using the vue-treeselect to do this https://vue-treeselect.js.org/#node
However, I would prefer to use the Quasar Tree, but the data that is being returned is far more verbose than vue-treeselect, and results in a significantly more complicated SQL query when returned to the server.
vue-treeselect, simply returns ["All"] when the root node is checked, or ["Europe", "NorthAmerica"] when only those items are selected.
The problem I'm having with Quasar's Tree component, is that it's returning every Country and State in Europe and North America instead. Obviously this includes 50 states for the USA alone, so a lot more data is being generated than necessary. And instead of the server simply saying "where Region = 'NorthAmerica'" it is instead having to do "where State='Alabama' or State='Alaska' or State='Arizona'" etc., which is very inefficient, and puts unnecessary stress on the database server.
The vue-treeselect component achieves this using a "valueConsistsOf" prop. https://vue-treeselect.js.org/#prevent-value-combining
If you quickly play with this link, you can see how the Quasar Tree effectively uses "Leaf priority", whereas it would be much more efficient for most people to use the "Branch priority" option, which is the default option for vue-treeselect.
Source: quasarframework/quasar