Replies: 3 comments 10 replies
-
This should be fixable. I feel like I just looked over this code and it properly checked for nl, but maybe it's a different path. Null has a type of object so a naive object check would pass it down the wrong path. |
Beta Was this translation helpful? Give feedback.
-
I ran into the "undefined" issue, and it's super annoying. I loaded some bad data that set the Alpine.store() value to undefined. Once it's undefined, the only way to access it again was to go through the browser and delete it from local storage. The Alpine.store initializing the variable never throws an error. It's only when I tried to access it later on that it threw a vague error. The thought hit me how much it would suck if some bad data ever went out to users and one of the local.storage variables got set to undefined. I would be stuck having to explain to lots of people how to go into their browsers and delete from the local storage, because that's the only solution I could find. Some way to throw an error if the something doesn't actually get stored in local storage would be super nice. |
Beta Was this translation helpful? Give feedback.
-
C# pretty much has TypeScript built in. The difference, for me, is that in
almost a decade of C#, I can hardly think of getting an error that I
couldn't just search for and find out what I was doing wrong. The only
exception to that is, if you don't do async right, it will sometimes eat
its errors and fail silently. Javascript can throw some really generic,
really vague errors at times. That, and all the packages involved increases
where they can happen at. What's built into .Net is pretty solid, and so
much is built in you just don't need as many packages. The trade-off to
that is that it's really easy to make a web page that looks like it was
created in 2008.
…On Sun, Nov 10, 2024 at 7:08 AM Eric Kwoka ***@***.***> wrote:
I find it pretty simple to debug, especially if you use TypeScript.
—
Reply to this email directly, view it on GitHub
<#3204 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR47IBDTSHZBXLUQ4A6AUD3Z75LFLAVCNFSM6AAAAABRNWW7JWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRQGQYDINI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Found out that if I set a Single-value stores to
null
it breaks everything and gives the following error:Beta Was this translation helpful? Give feedback.
All reactions