iNdra
iNdra
SSolidJS
Created by iNdra on 11/19/2024 in #support
Solid devtools with Astro
Anybody?
2 replies
SSolidJS
Created by iNdra on 5/26/2024 in #support
Solidstart with CSR, SSR and SSG?
I found the details. Thank you for support. Default ssr is ture in app.config.ts https://docs.solidjs.com/solid-start/reference/config/define-config when I change it, it is CSR. When set defineConfig({ server: { presets: 'static' }}) it will be SSG. crawlLinks: true will generate routes. https://docs.solidjs.com/solid-start/building-your-application/route-prerendering, https://nitro.unjs.io/config#prerender
9 replies
SSolidJS
Created by iNdra on 5/26/2024 in #support
Solidstart with CSR, SSR and SSG?
So Just use solidJS package is CSR and set SSR in config file will be SSR even when we use SolidJS package.
9 replies
SSolidJS
Created by iNdra on 4/22/2024 in #support
TypeError: useContext is not a function or its return value is not iterable
Thanks I will check it
5 replies
SSolidJS
Created by iNdra on 4/22/2024 in #support
TypeError: useContext is not a function or its return value is not iterable
Yeas everything else is working. What should I do for that?
5 replies
SSolidJS
Created by iNdra on 4/7/2024 in #support
How to deploy SolidStart project to Cloud (AWS/GCP etc.)
Ok I will try it thank you
4 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
No description
27 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
wow thank you very much for information and your time. Really helpful.
20 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
yeah. I mean Rust package for SSR. Client side use Solid JS not WASM. But I think future will be WASM.
27 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
Cool. That means you know protocol. Hope you make a package for rust, that work with solid. :start:
27 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
Do you know why like this community? They talk about real engineering stuff, not just about a product. That is what I like.
27 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
Thank you for information. Very helpful.
27 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
Oh I thought solidstart codes are combination of code. Client side and Server side. Thank you very much for information. I wounder how to reference DOM with JS. Now it is clear. I also thought, if that can link HTML DOM with JS, someone can create packages for python, PHP, rust to send HTML with comments from server like JS do. So then can make full stack frameworks. Just an idea.
27 replies
SSolidJS
Created by iNdra on 4/6/2024 in #support
How SolidStart SSR (& hydration) work?
thank you for information. I could not find any example codes for SSR in solidstart. is there have any recommend sites?
27 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
I use Rust Axum for API endpoints. So I am thinking about SSR process. Old days I use PHP for SSR and jQuery for event handling.
20 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
But the reality is that 80% of the internet seems to PHP-based anyway and eBay seems to do OK with Marko's Node.js based rendering—it's React SSR that is slow.
Yeah most of website PHP based because of wordpress. Rust is new and has more learning curve so most developers not use. But when use rust, long term website have more profit like PHP use. But not like NodeJS. NodeJS always uses more hardware resource to run and always use.
20 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
I guess the real question is: why a Rust server?
Because it is fast and not use much server resources. And also it is binary file so have more security.
20 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
The tradeoff is that you are exposing the visitor to Cumulative Layout Shift (CLS) . This is the main reason CSR SPAs send an empty document body—there is nothing to display until the client side code completes the first blocking render.
Can explain more about this how CLS effect with that? (and bottom parts (post render, comments) can use SolidJS) You mean when part of webpage already loaded using SSR and other part load after full load so CLS score will high? then not good.
20 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
thank you for information. I think old days method can use with SolidJS. Old day use PHP for SSR and JQuary or pure JS use to handle events by identify elemets using ID. So when use SSR using Rust, I can handle events using JS. <HTML Page> <SSR HTML DOM /> <CSR DOM (solid JS) /> </HTML PAGE> SSR HTML DOM event can handle using JS inside solid code but not hydrate any DOM. Example: Facebook profile page - profile header parts (cover letter, Add friend etc.) can use SSR and bottom parts (post render, comments) can use SolidJS. So only Add friend button click event need to handle inside SolidJS code. I think this method is posible way to do.
20 replies
SSolidJS
Created by iNdra on 4/4/2024 in #support
How to work with SSR pages?
thank you for information. As a summery, add data to <script id="appProps" type="application/json"> </script> and add those data to JSX App as a input prop. This is for second question. For first question, I use Rust for SSR and it add some DOM to page but control is doing in client side. How to do it? old days doing it by using JQuary or JS using getelementbyid method.
20 replies