You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only want a simple store without schema validation. Can I pass null to the second parameter, so something like that? I'm trying to avoid having to use another framework (zod in this case) in my app.
The text was updated successfully, but these errors were encountered:
Hey! Currently, unfortunately the answer is no(ish). You can theoretically pass z.any() as the schema, which will cause Zod to accept any schema, and set the writable's type to be any. However, you'd still need Zod to do this, but only to get the z.any function.
Since I personally think that naively parsing data from a client environment you can't control is pretty risky, I'm not sure if I'd rather add the ability to disable schema parsing entirely or only add support for parsers other than Zod for projects that already use another parsing library.
I'm currently leaning towards supporting different parsers and no parser at all in a new version, but it'd be a breaking v0.2 since I'd want the schema argument to be optional if it can be null. Unfortunately can't make any promises as to when this will be possible right now.
Either way, keeping this issue open to track the request 👍
I only want a simple store without schema validation. Can I pass null to the second parameter, so something like that? I'm trying to avoid having to use another framework (zod in this case) in my app.
The text was updated successfully, but these errors were encountered: