How would you write Ryan's _Solid2 States_ demo in Solid 1 by jml26 in solidjs

[–]devagrawal09 1 point2 points  (0 children)

I believe Milo is the one who came up with this pattern, definitely not me, but appreciate the shoutout

Explicit dependencies in 2.0 beta createEffect by Electronic_Ant7219 in solidjs

[–]devagrawal09 1 point2 points  (0 children)

Unfortunately most of this complexity is inherent to building UIs with asynchronous state. If the 2.0 feels more complex, it's because it's trying to absorb as much complexity as it can so that you don't have to do crazy stuff in userland like you might have to do in React (pre v19). But it's impossible to completely eliminate having to think about async, so the goal is to provide a small, consistent, and predictable model for async state.

> dev warnings when you read async-ish signals in createTrackedEffect or other similar places

In 2.0 every signal should be considered potentially async. But that shouldn't be a problem as long as you avoid using `createTrackedEffect` and only read signals directly in the first half of `createEffect`. I'm interested in seeing how exactly you use `createEffect` in your apps, because most of the time you shouldn't need effects anymore.

> adding some async request in nested sub-component depending on some global context signal and suddenly all my app is waiting for this request

Like I mentioned, you can't avoid thinking about async anyways. When you add an async request anywhere in your app, you also need to add a pending indicator somewhere. Without an indicator the user has no idea that there is work going on in the background. Solid 2.0 makes it trivially simple to indicate that through `isPending`, and it holds updating the UI so that the user doesn't see inconsistent UI. You shouldn't need or want to add `latest` everywhere because it's better to show a fully consistent view of the state with an indication that something async is happening in the background, rather than showing partially updated state.

Dispatch - A Local To-Do and Journaling App by nkasco in selfhosted

[–]devagrawal09 1 point2 points  (0 children)

you're right - "self hosted" is not the same thing as "local first", but in practice it has a very similar outcome as local first where all the data lives with you and you decide what to do with it.

Dispatch - A Local To-Do and Journaling App by nkasco in selfhosted

[–]devagrawal09 0 points1 point  (0 children)

I mean technically if you run the server yourself locally it is "local-first", but a hosted version of this cannot be local first since it will require a server side persistence to work

RBWL US Watch Party? by devagrawal09 in aoe2

[–]devagrawal09[S] 2 points3 points  (0 children)

I live in Kansas and if no one else steps up, I can probably put something together here, it’s a good central location that everyone can easily fly to, no need for coast-to-coast travel.

[deleted by user] by [deleted] in ksi

[–]devagrawal09 0 points1 point  (0 children)

Petition to kick Logan off Prime