No, it works, he's doing something wrong. I added 2 commands to my above code, one to set data to the variable and another to display it to the user.
Before doing anything to the code, I only connected and disconnected. Oh look, a vault file exists with my data in it.
Next I connected, set data to the variable, then disconnected.
And here I connected again and just showed the value which means it successfully loaded from nvault.
__________________