-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: opt by million #3439
base: main
Are you sure you want to change the base?
refactor: opt by million #3439
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
abd2446
to
837c105
Compare
837c105
to
63b4ed4
Compare
bfffdf2
to
f9f7f5b
Compare
4f5798e
to
2f40dc3
Compare
return await decryptMetrics(cipher, signal); | ||
return await decryptMetrics(cipher, signal); | ||
} catch { | ||
return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EMPTY_LIST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do that. We only use EMPTY_LIST
/EMPTY_OBJECT
inside react components and hooks which follow the immutable principle.
function fn() {
return condition ? ['mutable', 'array'] : EMPTY_LIST
}
const arr = fn()
// You can't do it for EMPTY_LIST
arr.push('new item')
Pull Request
Description
Related Issue
Closes FW-0000
Checklist