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 found an issue exploring modali with bundlephobia.
From bundlephobia stats, it turns that modali uses shortid & nanoid in the same time. A purpose of these libs is the same, but shortid is 33% of the modali bundle, which is huge.
The text was updated successfully, but these errors were encountered:
shortid uses nanoid, that is why both show up in bundlephobia. shortid is considered a dead project (the current maintainer states this multiple times in the issues and PRs), and nanoid is considered a better alternative.
In addition, the way the random generator is used in this project is a bit troublesome, as it generates new IDs for every render of the footer.
I guess nanoid doc is trying to protect React newcomers. Taking into account, that you change key each render intentionally, it doesn't look like a big deal to throw out shortid and use nanoid only. I can author a PR if needed.
Hello!
That lib looks really promising, so thank you!
I found an issue exploring modali with bundlephobia.
From bundlephobia stats, it turns that modali uses
shortid
&nanoid
in the same time. A purpose of these libs is the same, butshortid
is 33% of the modali bundle, which is huge.The text was updated successfully, but these errors were encountered: