3 ms·
> using a SPA framework has one major benefit. It forces you to make an API for everything. This is a drawback unless you truly need an API. YAGNI. I've found
by brushfoot 5y ago
> using a SPA framework has one major benefit. It forces you to make an API for everything.
This is a drawback unless you truly need an API. YAGNI.
I've found a hybrid approach works well. Your site is mostly server side, but some individual pages have Vue and an API endpoint or two. If that mobile app or that third-party integration becomes a need, add endpoints for that particular use case.
I've gone the other route and prematurely optimized for the "what ifs" first, and it's painful when they don't happen and you're left holding all that complexity.