inertiajs / inertia

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
https://inertiajs.com
MIT License
6.3k stars 423 forks source link

Data props change from boolean (0/1) to string ("0"/"1") in production #1841

Closed edikurniawan-dev closed 6 months ago

edikurniawan-dev commented 6 months ago

Version:

Describe the problem:

I have data in database with type is boolean 0 or 1, in local development i get data with type boolean like this image but in production why data change to be string like this? image

how to solve it? thanks

driesvints commented 6 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.