Blue Desk

Rodrigo’s blog.

Wednesday, November 29, 2023

Setting/resetting Vue reactive objects

›
Vue 3 has many idiosyncrasies, among them the overlapping ref and reactive constructs. One of the main differences is that reactive conte...
Monday, November 13, 2023

TypeScript function to set value by key

›
While researching React stores automation, I wondered whether it would be possible to have a TypeScript function to set the value of an obje...
Saturday, November 11, 2023

Jotai utilities for read-only and write-only atoms

›
Three months ago I wrote an utility function to deal with write-only atoms in Jotai . To go with it, today I wrote a function to deal with ...
Friday, November 10, 2023

Zustand computed values, pt. 2

›
I’ve been trying to find a way for computed values in Zustand for a while. The general recommended way is using a custom hook , according t...
Saturday, September 23, 2023

Cross-compiling Rust for x32

›
While analyzing a bug in WinSafe, I had to test its compilation on the i686 platform. Without knowing, I already had it installed together ...
Saturday, August 19, 2023

Calling write-only atoms in Jotai

›
Every atom in Jotai , when called through its useAtom primitive, returns a tuple of value + setter, just like React’s own useState . In a J...
Saturday, July 29, 2023

Delegating Display/Debug trait implementations

›
Suppose you want implement Display and Debug traits for your struct, but the output is the same. Instead of copy & paste the implement...
Monday, June 26, 2023

A generic hook for useState and Immer

›
While prospecting the use of useState with the great Immer , I ended up finding the small use-immer package, which unifies both things. Ho...
Thursday, June 22, 2023

Java Either class

›
Today, at work, I had the dire need of discriminated unions in Java, which of course doesn’t support it. Then I found the idea of the Eithe...
Thursday, June 8, 2023

Using Zustand, TypeScript and Immer together

›
In React land, Redux nightmare finally came to an end with the inception of Zustand , which throws away all the chores we had to previousl...
1 comment:
Saturday, June 3, 2023

TypeScript map for objects

›
In another round of React experiments, after another Vue frustration with Volar not typing event arguments, I was again into the state norm...
Saturday, April 15, 2023

Testing GitHub pull requests before merging

›
My personal projects on GitHub oftentimes. It’s very flattering when other people get interested in your personal work, and actively use it...
‹
›
Home
View web version
Powered by Blogger.