Repository navigation
Fix table column visibility preferences triggering redundant requests - #727
Conversation
When applying user preferences for column visibility, fields of the bootstrap table were accessed directly. Apparently the bootstrap table has watches on those fields, which caused table contents to be loaded at least twice, instead of once. This does not happen when using the "official" `table.showColumn` / `table.hideColumn` methods. Switching to those no longer causes duplicate requests. Signed-off-by: nscuro <[email protected]>
|
Ah, sorry it didn't occur to me that you already identified and fixed this particular issue! Looks like our solutions are different but achieve the same thing. Reading the Defer URL docs it looks like the more sustainable approach, so may use that instead of what I hacked together. 😆 |
|
Yes I came across this when implementing the other stuff and fixed it directly since it had an effect on what I did there :D maybe should have documented it better :D Yes I think that would be the better approach |
|
Hmmm I just tested and |
|
Hmm ok I didn't notice any issues :( |
Fix table column visibility preferences triggering redundant requests
Description
Fixes table column visibility preferences triggering redundant requests.
Addressed Issue
N/A
Additional Details
When applying user preferences for column visibility, fields of the bootstrap table were accessed directly. Apparently the bootstrap table has watches on those fields, which caused table contents to be loaded at least twice, instead of once.
This does not happen when using the "official"
table.showColumn/table.hideColumnmethods. Switching to those no longer causes duplicate requests.Checklist
This PR introduces new or alters existing behavior, and I have updated the documentation accordingly