appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

(JS-0417) Avoid `.bind()` or Arrow Functions in JSX properties

Open mohanarpit opened this issue 5 years ago β€’ 21 comments

Description

A bind call or arrow function in a JSX property will create a brand new function on every single render. This is bad for performance.

Occurrences

There are 660 occurrences of this issue in the repository.

See all occurrences on DeepSource β†’ deepsource.io/gh/appsmithorg/appsmith/issue/JS-0417/occurrences/

mohanarpit avatar Sep 14 '21 14:09 mohanarpit

can you assign me this issue?

Nightowl-8 avatar Oct 03 '21 08:10 Nightowl-8

Hey @Nightowl-8, thanks for showing interest πŸŽ‰ , This is all yours. Assigning this to you now.

As this issue has 699 occurrences, I would suggest resolving it for not more than 10 files in a single PR. Would be easier for you to contribute that way and for us to merge your changes in small chunks. 😁

Please don't forget to read the Contribution Guidelines. Would appreciate it if you can open a PR within the next 4 days.

rishabhrathod01 avatar Oct 03 '21 09:10 rishabhrathod01

Can i work on this issue

ankit-jha1210 avatar Oct 03 '21 15:10 ankit-jha1210

Can i work on this issue

HeyπŸ‘‹πŸΌ @J-Ankit2020, thanks for showing interest in this issue.

Unfortunately, this issue is already taken. Please do check our other Good First issues

Looking forward to seeing your contributions :)

rishabhrathod01 avatar Oct 03 '21 19:10 rishabhrathod01

Can I work on it now

ankit-jha1210 avatar Oct 07 '21 05:10 ankit-jha1210

@J-Ankit2020 This is all yours. Assigning this to you now. ( Following FCFS for prioritizing)

Please don't forget to read the Contribution Guidelines. Would appreciate it if you can open a PR within the next 4 days.

As this issue has 699 occurrences, I would suggest resolving it for not more than 10 files in a single PR. Would be easier for you to contribute that way and for us to merge your changes in small chunks. 😁

rishabhrathod01 avatar Oct 07 '21 06:10 rishabhrathod01

@Rishabh-Rathod I changed some arrow functions to anoymous functions kindly review it https://github.com/appsmithorg/appsmith/pull/8283

ankit-jha1210 avatar Oct 07 '21 08:10 ankit-jha1210

Hey this issue has many occurences. Can I also work on this issue??

samyakjain10 avatar Oct 16 '21 18:10 samyakjain10

Hi @Rishabh-Rathod. This issue seems to be inactive for long now. Can I work on this issue?

samyakjain10 avatar Oct 19 '21 17:10 samyakjain10

@J-Ankit2020 Are you still working on this issue?

rishabhrathod01 avatar Oct 19 '21 19:10 rishabhrathod01

@Rishabh-Rathod Please assign me this issue so that I can start working on it.

samyakjain10 avatar Oct 21 '21 10:10 samyakjain10

@samyakjain10 Assigned it to you 😁

rishabhrathod01 avatar Oct 22 '21 07:10 rishabhrathod01

@Rishabh-Rathod I have raised a PR. Please review.

samyakjain10 avatar Oct 24 '21 06:10 samyakjain10

@Rishabh-Rathod Can I raise a new PR meanwhile the other one gets merged?

samyakjain10 avatar Oct 29 '21 08:10 samyakjain10

@samyakjain10 You can go ahead with that. Small PRs will be great.

rishabhrathod01 avatar Oct 29 '21 08:10 rishabhrathod01

@Rishabh-Rathod maybe time to remove assignee on this :)

Rishabhkaul avatar Dec 23 '22 13:12 Rishabhkaul

can I work on this issue?

priyanka-mahour avatar Apr 21 '23 22:04 priyanka-mahour

@Rishabh-Rathod plz can you assign me this issue

nikhil-babar avatar May 03 '23 17:05 nikhil-babar

@Rishabh-Rathod hello!! can i work on this issue?

Ayan726 avatar May 27 '23 18:05 Ayan726

HeyπŸ‘‹πŸΌ @Ayan726, thanks for showing interest in this issue.

Unfortunately, this issue is not open for external contribution. Please do check our other Good First issues

Looking forward to seeing your contributions :)

rishabhrathod01 avatar May 29 '23 05:05 rishabhrathod01