DejaVue

Inertia.js (with Joe Tannenbaum)

Oct 10, 2024
In this engaging discussion, Joe Tannenbaum, a Software Engineer at Laravel and a contributor to Inertia, dives into the intricate world of linking JavaScript and PHP. He discusses how Inertia.js acts as a powerful bridge for developing applications, highlights exciting features in the upcoming version 2, and explains the importance of session management and client-side security. Joe also uncovers the advantages of using the Composition API in Vue.js and shares insights on working within a thriving remote team. Prepare to enhance your development game!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Best of Backend and Frontend

  • Use Inertia to write frontend in Vue while leveraging Laravel's powerful backend features.
  • Accept that backend is PHP and frontend is JavaScript, but type sharing via packages can help.
INSIGHT

Async Enhancements in Inertia v2

  • Inertia v2 introduces async features like deferred props and polling for smoother data fetching.
  • Deferred props allow initial page load to skip heavy data, loading it asynchronously with skeleton loaders.
ADVICE

Secure Cache Clearing with Encryption

  • Inertia v2 solves stale auth cache by encrypting and rotating history state keys stored in browser session storage.
  • This clears sensitive data on logout or session end to prevent unauthorized data visibility on back navigation.
Get the Snipd Podcast app to discover more snips from this episode
Get the app