[馃悰 BUG] When a table has a lot of content, updates to it are not always reflected in the visuals #1397
Labels
馃柊 GUI
Related to GUI
馃挜Malfunction
Addresses an identified problem.
馃煥 Priority: Medium
Not blocking but should be addressed
What went wrong? 馃
Raised in Discord first: https://discord.com/channels/1125797687476887563/1242498359093100667
I have a table that contains a bunch of different information, some of the rows have different "categories" though, and I want to be able to filter through these categories.
I did that through a selector on the side (not a dropdown one). The default category selected is "All", to show all, when a category is selected it changes a variable called selected_category, then on a callback called by the on_change of the selector will modify the contents of the table to only show the rows belonging to that category, followed by a state.refresh(table), because the table is part of another python object.
However that doesn't always work, in fact I can consistently get into a state where the table does not refresh, but if I refresh the page the changes are made. From the logs and from this it seems the table indeed does change but the change is not reflected visually. The table does have the rebuild property turned on.
Recorded a gif of an example code. Although it took a while for me to actually reproduce it because I made a much "lighter" version. You can see in the beginning of the gif that I was stuck, I refreshed and kept clicking multiple times until I managed to get it again. With this example was quite difficult but with my actual application (which is big) is a bit easy to get to that state
There might be a few quirks (e.g. taipy_thread) that you might find it unecessary. It's just something I made back in 2.4 and unsure if it still needed
This is the code used in the above Gif:
Expected Behavior
When clicking the buttons to change the table category, the table contents should update accordingly and not freeze
Steps to Reproduce Issue
Run the code snippet in the description, click the category buttons multiple times until the table freezes.
Solution Proposed
No response
Screenshots
No response
Runtime Environment
No response
Browsers
Chrome, Firefox
OS
Linux
Version of Taipy
3.0.0
Additional Context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: