Not a fan of hand-wavy claims like this, even if true. The name mangling is such a horrid DX when debugging that I'm not sure it's worth the proclaimed benefits.
Not a fan of hand-wavy claims like this, even if true. The name mangling is such a horrid DX when debugging that I'm not sure it's worth the proclaimed benefits.
www.typescriptlang.org/play/#code/G...
www.typescriptlang.org/play/#code/G...
In this example, we are setting "foo" only if it doesn't already exist, then we're returning the previous value.
As you can see, the naming is aligned with Redis' naming.
In this example, we are setting "foo" only if it doesn't already exist, then we're returning the previous value.
As you can see, the naming is aligned with Redis' naming.
I'd like to support all Redis commands, but need someone with the time to put them in. It's not a difficult thing to do.
I'd like to support all Redis commands, but need someone with the time to put them in. It's not a difficult thing to do.
by default, valtio only has knowledge of index operations (set or delete) and native calls translate to them opaquely, so i had to inject some extra logic to track the native calls :)
by default, valtio only has knowledge of index operations (set or delete) and native calls translate to them opaquely, so i had to inject some extra logic to track the native calls :)
if a property starts with "#" that means it's a reactive variable inside your createClass() factory function
if a property starts with "#" that means it's a reactive variable inside your createClass() factory function
it has a powerful filtering mechanism, with opt-in console.trace() for specific values.
it has a powerful filtering mechanism, with opt-in console.trace() for specific values.
• re-assigned parameters are reactive
• onUpdate lets you receive updated parameters from component rerenders
• property assignments can be reactively bound to a computed(…) expression
• re-assigned parameters are reactive
• onUpdate lets you receive updated parameters from component rerenders
• property assignments can be reactively bound to a computed(…) expression