EugeneMeles / laravel-react-i18n

Allows to connect your `Laravel` Framework translation files with `React`.
MIT License
73 stars 8 forks source link

Text missing using Inertia SSR and Typescript #25

Closed AlexanderFalkenberg closed 1 month ago

AlexanderFalkenberg commented 1 month ago

There is no text using the provided hook functions. There is some flicker if using: php artisan inertia:start-ssr

Using the latest version of Inertia and Laravel 11

wescopeland commented 1 month ago

I am unable to reproduce this using the latest 1.x version of Inertia, Laravel 11, and React 18 with SSR. This is all currently deployed in prod.

Do you see any console errors in the browser or in the Inertia daemon?

AlexanderFalkenberg commented 1 month ago

Thank you, @wescopeland. I was not following the installation instructions correctly. I added the provider only to ssr.tsx instead of both to app.tsx and ssr.tsx. It was late. My bad. I'm closing this.