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
In this case, the created object is thrown away because its reference isn’t stored anywhere, and in many cases, this means that the constructor should be replaced with a function that doesn’t require new to be used.
What lead to using new rather than just importing some kind of function like compress() or equivalent?
The text was updated successfully, but these errors were encountered:
hay @fengyuanchen, how can I push compressor result to data ?
I'm using vuex and some parameter as payload to upload, and I cann't using vuex inside compressor
hay @fengyuanchen, how can I push compressor result to data ? I'm using vuex and some parameter as payload to upload, and I cann't using vuex inside compressor
Describe the bug
The regular use of this starts with
new Compressor
without storing the result (since the main effect is in side effect).From ESLint docs https://eslint.org/docs/latest/rules/no-new
What lead to using
new
rather than just importing some kind of function likecompress()
or equivalent?The text was updated successfully, but these errors were encountered: