Michael Rawlings

452 posts

Michael Rawlings banner
Michael Rawlings

Michael Rawlings

@mlrawlings

Platform & Frameworks @ebay • @MarkoDevTeam • Open Source • Running • Slackline

Campbell, CA Katılım Nisan 2009
116 Takip Edilen656 Takipçiler
Michael Rawlings retweetledi
Ryan Carniato
Ryan Carniato@RyanCarniato·
There is hate for JS on the server. But none have accomplished what @MarkoDevTeam has. Forget Islands, forget serialization boundaries, forget writing code twice. Just declarative templates, low JS. @dylan_piercey joins me Friday to show how it's done. youtube.com/live/x-3RxGf4K…
YouTube video
YouTube
English
6
19
144
14.1K
Michael Rawlings
Michael Rawlings@mlrawlings·
@bobaekang @RyanCarniato Binding to member expressions is a recent addition and not supported by the preview we released a while back which is running in the playground. We'll have running examples to share soon!
English
1
0
4
185
Adam Rackis
Adam Rackis@AdamRackis·
😣 he's right Client components can't read cookies during ssr—credentials: include does not work in ssr fetch call, nor can cookies be read in middleware for that call I'm about ready to give up on app dir for app development. Maybe Tanstack or Remix will ship something usable
Julius@jullerino

@AdamRackis I unfortunately never found much use for this data loading pattern. Looks awesome in practice but you dont have access to the request cookies in client components during SSR so the useSuspenseQuery wont be able to make authenticated requests

English
38
8
167
138.1K
Michael Rawlings
Michael Rawlings@mlrawlings·
@dylan_piercey setImmediate queues a macrotask, so we end up with 3 macrotasks in the queue. however when the first one resolves and executes, it begins executing microtasks and doesn't get back to the macrotask queue before the log. Functionally it's equivalent to: gist.github.com/mlrawlings/a4a…
English
1
0
3
210
Dylan Piercey
Dylan Piercey@dylan_piercey·
Note my question isn't entirely related to setImmediate, in the gist if you replaced setImmediate with `setTimeout` I'd also probably expect it to output `3` instead of one (unless the env does some batching).
English
1
0
0
177
Dylan Piercey
Dylan Piercey@dylan_piercey·
Can anyone help me reason through the output of this gist? TLDR I'm trying to append to the micro-task queue after a macro-task so that I can track all of the completed macro-tasks. gist.github.com/DylanPiercey/0…
English
1
0
0
307
Kent C. Dodds ⚡
Kent C. Dodds ⚡@kentcdodds·
JSX is great. When I moved from templates (Angular/Jade/mustache/etc) to JSX, it was a breath of fresh air to stop using a limited DSL to using something I could compile to regular JavaScript in my mind and allowed me to use real JS expressions. Huge win in my experience.
English
46
26
552
107.5K
jess
jess@_jessicasachs·
@kentcdodds I love "dropping down" to use JSX w/ Vue when necessary and keeping presentational stuff or boring patterns in SFCs.
English
1
0
7
2.2K
Michael Rawlings
Michael Rawlings@mlrawlings·
@_developit @RyanCarniato If DOM Parts makes it into the spec, it seems like the integration that makes the most sense is allowing a Part to accept a standardized signal as its value. And Parts have their own batching. But then there's the question of how to coordinate "user-effects" with this batching.
Michael Rawlings tweet media
English
1
0
3
160
Jason Miller 🦊⚛
Jason Miller 🦊⚛@_developit·
@RyanCarniato As an example, the browser could defer subtree updates within `content-visibility:auto` containers, without requiring bookkeeping or exposing renderer state to JS. It could also force a sync read of bound signals when the subtree becomes visible, just before layout & paint.
English
2
0
4
1.2K
Michael Rawlings
Michael Rawlings@mlrawlings·
@JLarky Yeah idk. It's >=1. Both islands and resumability have the ability to eclipse each other and even SSR depending on the scenario and specific framework optimisations. twitter.com/JLarky/status/…
JLarky@JLarky

@Raynos It's 1 to 2 depending on if you use no client directives (just MPA), client:only (just SPA) or client:load (SSR) So it's going to be 1, 1, and 2. Depending on your page (same goes for RSCs depending on "use client")

English
0
0
1
359
JLarky
JLarky@JLarky·
@mlrawlings yeah, I was trying to figure out that part :) maybe 1.3? :)
English
1
0
1
1.7K
JLarky
JLarky@JLarky·
SPA is the baseline SSR is running the same app twice and sending the data twice RSC is running the same app 1.5 times and sending the data twice Islands is running the same app 1.5 times and sending data 1.5 times Resumability is running the app once and sending the data once
English
33
29
435
133.7K
Michael Rawlings
Michael Rawlings@mlrawlings·
@mhevery @JLarky MPA sends the data once in HTML form. Resumability requires sending not just the HTML, but also some additional state (values closed over by event handles/effects).
English
1
0
3
274
@brianleroux@indieweb.social 💙
@[email protected] 💙@brianleroux·
What is 'impossible' to build with web components and a serverless backend? I like a challenge.
English
7
1
10
5.3K
Michael Rawlings retweetledi
Marko
Marko@MarkoDevTeam·
Introducing the new Marko Logo: 𝕄
Marko tweet media
English
6
9
150
38.8K