Lately, I have switched from AsyncStorage to MMKV in on of the macOS test projects, and I would like to utilize the path config, but it looks like that, when path includes tilde (~) file is not saved. Not sure if this is intended to work, but I have decided to report this anyway, so feel free to close this one or convert to feature request.
Other thing which was a bit unexpected is that you cannot use the constructor with config object, but without the id field (no fallback to default?), so for example when path and encryption field are the only present, this leads to error about missing ID.
Repro
Lately, I have switched from AsyncStorage to MMKV in on of the macOS test projects, and I would like to utilize the
pathconfig, but it looks like that, when path includes tilde (~) file is not saved. Not sure if this is intended to work, but I have decided to report this anyway, so feel free to close this one or convert to feature request.Other thing which was a bit unexpected is that you cannot use the constructor with config object, but without the
idfield (no fallback to default?), so for example whenpathandencryptionfield are the only present, this leads to error about missing ID.Repro
path: '~/.test'config option