On PF Topology, the withContextMenu support allows to supply an array of ContextMenuItems. This is fine if the menu items can be determined immediately given the element, but in some cases determining the menu items may require supplemental information and may require data retrieved asynchronously.
It would be nice if withContextMenu could supply both an explicit array (could be an initial set of options) and an optional Promise that could supply the final set of options. The contextMenu may need to display a loading... type message while the Promise is being resolved, not sure.
/cc @jshaughn
On PF Topology, the
withContextMenusupport allows to supply an array ofContextMenuItems. This is fine if the menu items can be determined immediately given the element, but in some cases determining the menu items may require supplemental information and may require data retrieved asynchronously.It would be nice if
withContextMenucould supply both an explicit array (could be an initial set of options) and an optional Promise that could supply the final set of options. The contextMenu may need to display aloading...type message while the Promise is being resolved, not sure./cc @jshaughn