Closed devfreddy closed 4 years ago
This one is puzzling me:
fix: flashes, are we allowed to do this (a side panel) without
?
This flash is new as of a week or so. When I first styled the the detail panel and added its visibility to the state to show and hide it, it worked without issue. I even tested it to get the animation right, so I'm sure it was working at some point because now you don't see any animation at all whereas before you did.
I think the issue is calling setState()
from the openDetailPanel
function. That.. doesn't make sense to me though, so I'm going to keep digging. I may drop it and come back after tackling other bigger issues.
For posterity's sake - the flashes issue with the DetailPanel was caused by <AlertableEntitiesByGuidsQuery>
having some bad begin_time
and end_time
defaults set in its render()
method. The setState()
called when "opening" the DetailPanel caused a re-render and because we were utilizing Date.now()
in the render method a change in the children
prop.
Solved by setting the default higher in the component tree (in ViewMap), and also utilizing the PlatformStateContext.Consumer
(if the user sets the timeRange themselves).
Geo Ops Workloads Outstanding Items
Feat
Fix
<Modal>
?Backlog
<Dropdown label="My Account 1">
based