soc221b/pinia-plugin-persistedstate-2

Inconsistent behavior of `assertStorage` between production and dev

Tanimodori opened this issue · 1 comments

Describe the bug

Currently the plugin skips assertStorage on production, which creates a inconsistent behavior between production and dev, that assertStorage will never be called on production. I don't understand the intention of this inconsistency. Is this production assertion targeting on console.warn?

https://github.com/iendeavor/pinia-plugin-persistedstate-2/blob/1fb2cace616c5de8cf3d16023efd9ef16291414d/src/plugin.ts#L156-L167

To Reproduce
N/A

Expected behavior
assertStorage should be called on production.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.