Better HN
topnewbestaskshowjobs
Log inSign up

campbellman

3 karma · joined Sep 10, 2023 (3y ago) · 9 submissions

Submissions

1.

I Will Wait(throwawaythoughts.blog ↗)

3 points · by campbellman · 1mo ago · discuss

comment 2y ago · link · parent

If you aren't sure why state tearing was a hot topic a few years ago, when React's concurrent mode was first discussed, this github discussion should help: https://github.com/reactwg/react-18/discussions/69.

Tanner Linsley had a great post on twitter that suggested that concurrent rendering was fundamentally at odds with fine-grained reactivity, so to better understand what he was talking about I decided to write this demo.

3.

Simulate global state tradeoffs in React concurrent mode(tearabledots.com ↗)

1 points · by campbellman · 2y ago · 1 comment

4.

Show HN: NextCast – static analysis and meta programming in NextJS(interbolt.org ↗)

1 points · by campbellman · 3y ago · discuss

5.

Abusing page functions: inject and access dynamic data in a static site(interbolt.org ↗)

1 points · by campbellman · 3y ago · discuss

comment 3y ago · link · parent

I was working on an app that had a ton of app logic within a single custom react hook. The hook's return value was passed to a context provider, which was a re-render nightmare. The code was hard to optimize without breaking the logic up into many smaller contexts. Rather than doing that, I wrote this library instead so that the hook's return values were accessible in "re-render safe" ways. It's a WIP, so feedback is welcome :)

7.

Enabling custom "god" react hooks that don't trigger unexpected re-renders(github.com ↗)

1 points · by campbellman · 3y ago · 1 comment

comment 3y ago · link · parent

Fun day to release a blog post[0] about cloudflare page functions, on a site hosted on cloudflare pages.

[0] https://interbolt.org/blog/split-it-and-forget-it

comment 3y ago · link · parent

Hilarious timing. I shared my first ever blog post on reddit a couple hours ago. The blog is hosted on cloudflare, and the post describes a use case for page functions.