AlexWayne
Explore posts from serversAarktype
•Created by AlexWayne on 1/31/2025 in #questions
configure({ onUndeclaredKey: 'delete' }) seems to allow extra properties through.
Or have I done something wrong
Yields:
I'm on 2.0.4
13 replies
Aarktype
•Created by AlexWayne on 7/29/2024 in #questions
using an const array as a source for a string literal union
Given this:
How can I create a type like
Full example: https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgLzgXzgMyhEcDkyEAJvgLABQoksicMAnmAKbpY574CGUA1oy3IVKAYwgA7AM7wA7sy4wAFsygBJMVLgBeOAG1KcApICu4-ABoDBKF2BnLFQ-kniIMi5QC6cLpLgbpSiCKAPhkAGURZRAubRQAOggAIwArZhEYAAoEKxhmcAAuBPFjECSVTIBKB0NgDSLkeOYSkEy5BWU1AOrKNErKAVYALUjo2J1Gu0wVAB5BiEwUUfyuAD4BpmHlmIB1eSUVdQk4kaiV3Xw6iXxPSgB6O8M4AD0AfmDRCWkfbfH6TeyuXyYCK+Ba5SgHkccCu4lB0igdgA5hY4A84DMALSYwyvPG9foUQZwACCvzi80WXF+8SmKg2LFJvz2HUOGjiZLOMQusJu90ehjeQA
7 replies
v10 useQueries does not return a stable reference
I though this code would work downstream for memos and callbacks, but it does not. The memo and effect are re-ran every render.
Have I don't something stupid, here or is this intended? How would I memoize a derives values from the results?
This code:
Logs this:
5 replies