Comments (6)
There should also be a pure spa
mode for those where SEO is not as important or who just like the simplicity of SPA. When creating an isomorphic app, sometimes we need to write client or server specific code which won't be necessary with a SPA.
from perseus.
Could you give me an example of a situation in which that would be particularly useful?
from perseus.
For example for sending HTTP requests, we only have to worry about client side, not server side. Of course, we could do this on the server-side and serialize it during the page load but that wouldn't work for something like, say, using firebase for realtime data.
from perseus.
Couldn't that just be done in the existing system inside a component with a check for the definition of the window
using web_sys
?
from perseus.
Sure, we could use conditional compilation but that makes everything more clumsy. SvelteKit has an option for this (even though it is generally not recommended) https://kit.svelte.dev/docs#ssr-and-javascript-ssr
from perseus.
Hmm okay. Maybe open a separate issue for that then.
from perseus.
Related Issues (20)
- Proper hydration in the app shell HOT 1
- Support error page document metadata
- Page transition jolt with long content HOT 8
- SWR in page serving
- Building fails as Cargo.lock uses sycamore-macro 0.8.0 (not the beta.7 version) HOT 6
- New routing system
- Tokio build fails in v0.3.x HOT 23
- GZIP Compression HOT 15
- Unique canonical link SEO HOT 2
- Cookies Feature
- SSR / Hydration HTML mismatch when rendering view! macro inline condition HOT 6
- Replace `perseus_integration` glue crate HOT 11
- [Meta] Fix i18n end-to-end test HOT 5
- Merge build paths and build state HOT 1
- Suspense fails HOT 6
- CLI fails in windows for users with spaces in their username HOT 3
- Tool extraction failure HOT 8
- Let build-time plugin runners return Results HOT 3
- Static aliases fail to create directory structure HOT 3
- CLI Generated sample program does not work HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perseus.