Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SSR+SPA
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sigma
October 10, 2022
Programming
150
0
Share
SSR+SPA
Sigma
October 10, 2022
More Decks by Sigma
See All by Sigma
Proxmox_VE.pdf
seiyasugimoto
0
220
Stable Diffusionで遊んでみた
seiyasugimoto
1
140
EVAフレームワーク
seiyasugimoto
0
110
Nuxtにおける設計
seiyasugimoto
0
100
Atomic Designを ディレクトリ以外で表現
seiyasugimoto
0
89
throttleすげぇぇぇ
seiyasugimoto
0
85
スマホでPythonしたい
seiyasugimoto
0
74
平文で保存するな!
seiyasugimoto
0
95
ソースコードを読もう
seiyasugimoto
0
97
Other Decks in Programming
See All in Programming
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
370
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
120
CSC307 Lecture 17
javiergs
PRO
0
240
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
7
1.9k
Inside Stream API
skrb
1
160
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
200
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
180
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
590
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.7k
iOS26時代の新規アプリ開発
yuukiw00w
0
200
inferと仲良くなる10分間
ryokatsuse
1
250
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
350
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
The Spectacular Lies of Maps
axbom
PRO
1
760
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
270
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Crafting Experiences
bethany
1
160
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
160
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
800
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
360
Transcript
SSR+SPA Nuxt+Vuex
SSR(+SPA) とは • SSR とは ◦ サーバーサイドレンダリングの略。 クライアントサイド(SPA)と サーバーサイ ドの
HTMLレンダリングを 併用しユーザー体験を向 上させることを指す。
冷静に考えるととんでもないことをやってる • サービス内の別のページからリンクすると クライアントサイドで レンダリングされる。 • そのページをF5を押して再読み込みすると サーバーサイドでレ ンダリングされる …
は?
なんでそんなクソ面倒くさいことを? • サーバーサイドでレンダリングするならテンプレートエンジンを使った昔ながらの 方法でやれば良いじゃない。 • SPAが必要なほど複雑なフロントエンドで、OGPのクローラの面倒を見たりSNS でシェアされた際のファーストビューの速さが問題になる要件そうそう無いで しょ。 つい先日あった
Nuxtで対応 • NuxtにはSSRサポートがある これで勝つる わけなかった
案件当時の標準的なNuxtプロジェクト • Nuxt + TypeScript を実現するために外部ライブラリを使う ◦ nuxt-property-decorator ( vue-property-decorator
) ◦ vuex-module-decorator • vuex-module-decorator の issue にとんでもないコメントを見つけてしまう。 ◦ https://github.com/championswimmer/vuex-module-decorators/issues/146#issuecomm ent-515269904
SSRのバグのソリューションを探った 結果、getModule() に根深い問題が ありそう。 このリポジトリは大規 模なオーバーホール 無しではSSRでは使 えない。
終わった……
None
Readmeに書いてある おまじないの意味を知る
exportしてるpluginsがキモ getModule()しているのがポイント
I GOT KOTONAKI……