ciscoheat / sveltekit-flash-message

Send temporary data after redirect, usually from endpoints. Works with both SSR and client.
https://www.npmjs.com/package/sveltekit-flash-message
MIT License
263 stars 6 forks source link

any support in PageServerLoad? #37

Closed FCNealVillangca closed 6 months ago

FCNealVillangca commented 6 months ago

I was trying to redirect to home when user is already logged in image

ciscoheat commented 6 months ago

You cannot use request as an argument to redirect, it must be the whole event.

This may be unrelated, but usually you import PageServerLoad from ./$types, not the parent as you illustrate.

FCNealVillangca commented 6 months ago

I think I will try something out first