Frontend development tips Flashcards

1
Q

Why onSuccess/onError removed from useQuery

A
  • An additional render cycle
  • The callbacks might not run (cache)

soultion: onDataChanged in effect

https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#state-syncing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can slow down the browser speed?

A

Chrome DevTools > Performance Tab
CPU = 4 *slow down or …

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which size metric is most relevant when considering the impact of a JavaScript library on a project?

A

The minified and gzipped size is the most relevant metric as it reflects the compressed size of the JavaScript code for efficient network transfer and optimal page loading.

https://bundlephobia.com/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what’s the categories for a system design in frontend side

A
  • features
  • non-functional requirements
  • user experience
  • engineering
  • back in API
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what things are considered in features category FE sys Design

A
  • MVP
  • high-level estimation
  • core functionality

High level estimation
data volume , Peak traffic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what items are included in non-functional requirements in front end system design

A
  • performance
  • offline mode
  • security
  • high availability

performance
* Cache
* CDN
* load on demand or preload
* page spliting

offline mode
* local storage
* indexedDB

security
* xss
* csrf

high availability
* load balancer
* health check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly