How to catch "Save" & "Apply" button event

I am developing a custom plugin using the mxGraph library. When editing the main fields after clicking Save, the graph is updated without reloading. But when custom fields are changed (for example, xml code for drawing a graph) and the Save button is pressed, the graph remains the same. At the same time, the “options” and “data” props in SimplePanel do not change

export const SimplePanel: React.FC<Props> = ({ options, data, width, height })

Only reloading the page helps. Is there any way to catch saving and applying changes to the graph dashboard (SimplePanel) and redraw the graph?

Same issue without answer