Front-End Architect at @FronteggForSaaS. Independent thinker and creative problem solver. Ensures high availability and security of products and services.
Frontegg Forward has successfully entered #SaaS orbit ๐ฐ๏ธ
Still have questions? Check out this detailed post to learn more.
https://t.co/I42kd8m9eL
Are you ready for #DevWeek2023?
Our amazing team will be happy to meet you at DeveloperWeek 2023, the world's largest developer and engineering conference. The event will be held on February 15-23 in Oakland, CA.
Stop by and see us at booth #509 in the expo hall!
We have some more #Eggciting news!
@FronteggForSaaS has just been named as a finalist of the Best Product for Web or App Development in The #SaaSAwards international business software program. โThis year's SaaS Awards shortlist is very strong"
Stay tuned for more updates!
@kya_yaarAkshat@dev_bogdan (2/2) you sre right, useSelector needs one useEffect at mount to subscribe and that effect dhould also unsubsribe before unmount, every update will be on subscription and useState hooks. No need for effect. You may need for one useCallback to handle dispach actions
@kya_yaarAkshat@dev_bogdan (1/2) Adrian mentioned react query for more readable code and api call decentralization. It will provide you with good custom hooks that helps you write clean code, but in this custom hooks they also using useEffects. The main idea here to not abuse the use of useEffect.
@kya_yaarAkshat@dev_bogdan Using good store reducers and moving your component login to the store, you will only need to useMemo and store selectors. Changes may be done with actions. In this way your component will not have useEffects, it will contain useSelector -> useState and actions.
@kya_yaarAkshat@dev_bogdan Custom hooks with good state management will reduce your useEffect calls. The main purpose of a component is to display data without logic
@EthamFrancis Your login screen does not looks perfect, try to use @FronteggForSaaS for perfect login flows and advanced user management. https://t.co/F8WtcXh3S4