I'm feeling like I need to optimize some of my views. There are two scenarios where I'm not sure how:
When I only want to show a view tab if there is something to show, but the calculation of the collection is expensive, I end up doing it twice. I tried cacheing the result and reusing it for the view's items, but then there's no way to update the view later.
I have some Python code that determines whether a view should be shown.
Thinking through some workarounds, I was wondering:
can Python code be run in the background without blocking?
can a view close its own tab?
can a view alter its tab, like changing the label on the fly?
can the async stuff help me here?
can a view change its own priority based on new information not available during initial creation?
I'm feeling like I need to optimize some of my views. There are two scenarios where I'm not sure how:
Thinking through some workarounds, I was wondering: