dimalmighty
banner
dimosf.bsky.social
dimalmighty
@dimosf.bsky.social
Accurate 😂
"dimalmighty: The Coding Enigma Wrapped in a Bluesky Mystery"

blueskyroast.com
Get Your Bluesky Personality Analyzed (With a Side of Gentle Roasting) | Bluesky Roast
Discover your Bluesky persona through our AI-powered analysis. Get insights about your posting style, community role, and quirks - all served with a dash of humor.
blueskyroast.com
December 1, 2024 at 7:17 PM
Reposted by dimalmighty
Starting in 19, you shouldn’t need to fetch in an effect for any of these use cases.

Initial GET should be cached and read in render with use().

Refresh GET should clear the promise cache to trigger with use() again.

POST/PUT/DELETE mutations should be done in event handlers with actions.
December 1, 2024 at 6:47 PM
Reposted by dimalmighty
November 30, 2024 at 7:54 AM
React experts help! Say I have a component that accepts a ReactNode as a prop (not children). Is it valid to use React.Children to get the prop component's children? Use case being setting different layout depending on that component having children or not
November 2, 2024 at 12:09 PM