How To Use Transient and Singleton Dependencies in Front-end Architecture

Published: 19 April 2022
on channel: Logic Room - Learn UI Architecture
120
6

Download UI Architecture Book - https://www.logicroom.co/start
UI Architecture Masterclass - https://www.logicroom.co/wb-uiarchite...

In each dependency in our UI app, we’re going to want to decide on which design pattern to use: a Singleton that stores the lifecycle of the component during the lifetime of the application, or a Transient that renews itself every time it’s loaded. The best way to use Singletons, is when we want to keep hold of variables like storing state. And the best way to use Transients, are for components that reload all the time like the presentation layer.


Watch video How To Use Transient and Singleton Dependencies in Front-end Architecture online without registration, duration hours minute second in high quality. This video was added by user Logic Room - Learn UI Architecture 19 April 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 120 once and liked it 6 people.