Component members "cleared-out" when plugin window closed

Hello, I have a component that has a juce::String member variable.
It is initialized to an empty string " ", yet later on it is used to display text on the component.
So far so good, but when I close my plugin window and open it back up, the component is recreated again, and the string once more is initialized to " ".
→ How can I keep a members value, or restore it?
I´m sure this is once more a pretty standard C++ thing to know, but I´m a noob after all.

Ideally store all information in the processor that is present during the whole lifetime.
Your components read that string from the processor to display it.
The editor has a reference to the processor for that purpose.

1 Like

That makes sense and is kind of obvious. Thank you very much daniel.