You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a web component that displays information about a Discord ID, meaning someone could use <discord-user user-id="210246661446959104" /> and it would display its username and more information. Unfortunately, due to this line ( https://github.com/ryansolid/component-register/blob/master/src/utils.ts#L118 ) the Discord ID gets converted to a number which breaks it because that converts it to 210246661446959100.
In my humble opinion, automatic parsing should not be done on incoming argument values, as is made evident here.
The text was updated successfully, but these errors were encountered:
Hello Ryan!
I'm making a web component that displays information about a Discord ID, meaning someone could use
<discord-user user-id="210246661446959104" />
and it would display its username and more information. Unfortunately, due to this line ( https://github.com/ryansolid/component-register/blob/master/src/utils.ts#L118 ) the Discord ID gets converted to a number which breaks it because that converts it to210246661446959100
.In my humble opinion, automatic parsing should not be done on incoming argument values, as is made evident here.
The text was updated successfully, but these errors were encountered: