Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SvelteKit with ssr=false; and Laravel 11 API, and want it to end as a Web Application

Does anyone have any experience making a sveltekit SPA into a mobile application and can warn me of any pitfalls?

Am I dreaming that I can get this to work?

I am building a Sveltekit application that will (hopefully end as a const ssr=false; single page application.
It is a front end that calls to my laravel 11 API which I used as the API instead of sveltekit built in node end point functionality to more easily work with tokens and authenticated requests etc. I found laravel to be super fun and straight forward.

Thanks.
 
I am a moron!!
I never defined data!!

JavaScript:
export let data;
export let { prop1, prop2, prop3 } = data;

I was assuming export
JavaScript:
let { prop1, prop2, prop3 } = data;

also defined and exported data!!!

Carry on with your lives...
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom