How to save settings for a plugin per graph?

Is there a way to save plugin settings in a graph?

It seems to be saving them globally :exploding_head:

Now that I know how to get graph name I can suggest a way to save specific graph settings. For instance:

const graphName = (await logseq.App.getCurrentGraph()).name;

// Write
logseq.updateSettings({[graphName]: { foo: 'Foo' }})

// Read