rocicorp / rails

Replicache on Rails
Other
34 stars 3 forks source link

Don't return the parsed value from parse(). #10

Closed aboodman closed 1 year ago

aboodman commented 1 year ago

The cloning defeats caching by identity, ie with React.memo. And we already disable the parse in production so we may as well return the original value in dev too for consistency.

arv commented 1 year ago

Another reason to prefer Valita over Zod!