Erik Demaine
Erik Demaine
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
Here's the fix in case anyone is curious: https://github.com/DanielXMoore/Civet/pull/1157
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
not sure why they don't work but at least I can easily skip them 🙂
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
ah, I isolated it to these lines
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
Curious. I've tried commenting almost all of the Civet extension (e.g. just always returning null from resolveId) and it still doesn't work.
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
Source is here in case you're willing to look at it
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
which at least I control... but not sure what's broken
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
so not Astro specific, must be Civet
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
Here's a fork of your StackBlitz that shows the problem: https://stackblitz.com/edit/github-ftzkhd-zaqeky?file=app.config.ts
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
So I guess that the Civet extension is somehow messing things up... though it shouldn't be doing anything with .jsx files
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
https://stackblitz.com/edit/github-9xb3p3-rvdeyn?file=package.json works, but if I add the Civet extension, I get the same error
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
I seem to have isolated my problem to a different Vite extension (that I cowrote), for Civet 😦
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
I believe so, given past GH issues on solid-bootstrap
23 replies
SSolidJS
Created by Erik Demaine on 4/7/2024 in #support
Dependency configuration in Astro
The one that impacts package.json exports. Sorry, I always forget their proper name in Node.
23 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
Yeah, this is the current way to make instantly updating things that aren't memos (e.g. one change updates multiple signals), though memos are generally better because their ordering can be optimized more. I think the are other primitives coming some day... But these don't work (easily) if you want to wait until after a render.
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
I think so... I think nothing actually breaks, it can just cause multiple updates to the same memo/whatever when one update would have sufficed. So might be a reasonable approach to consider.
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
To do flexbox layout, I wonder if the parent could pass in some kind of callback function (via props say) to the child, and child calls it after it lays itself out. It's pretty clear what this would do in initial render but I'm less sure about updates. More generally, you could imagine passing in "before" anf "after" layout callbacks, which might be an interesting design... This is more like manual wiring but could still be reactive.
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
Ideally you'd work more directly with Solid's reactive graph, which is also a DAG. But I don't see how to do it with createMemo... It may not be possible with Solid's current design.
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
I'm a little worried about how Solid effects get ordered in updates. (Do you have reactive updates?) I'm confident about the order on initial render, but I don't know whether the order is preserved during updates... Which might be an issue even for your current approach.
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
Nice! I'm a geometer myself. I was looking at Haskell Diagrams recently which has some neat ideas. I'm curious where this JSX-based approach can go. (Less related, but I wrote my own figure drawing tool that uses JSX: https://github.com/edemaine/svgtiler)
33 replies
SSolidJS
Created by jmp on 6/24/2023 in #support
Coordinating Signals in a Layout System
Glad you have something working! It's a little tricky to think about alternate designs from this level of detail. You could consider getters/setters in the store, which should let you put signals in there.
33 replies