State Management
Everything on SkillVeris tagged State Management — collected across the glossary, study notes, blog, and cheat sheets.
18 resources across 2 libraries
Cheat Sheets(1)
Interview Questions(17)
What is the Memento Pattern?
The Memento pattern captures and externalizes an object’s internal state so it can be restored later, without violating encapsulation by exposing that state’s…
What is Session Persistence?
Session persistence (also called sticky sessions) is a load balancer feature that routes all requests from a given client to the same backend server for the du…
How to Design an Elevator System?
An elevator system is designed around a central dispatcher that models each car’s state (position, direction, queued stops) and assigns hall calls to the car t…
How to Design a Vending Machine System?
A vending machine system is best modeled as a finite state machine with a small set of explicit states (idle, selecting, awaiting payment, dispensing, returnin…
What Are the Rules of Hooks and Why Do They Exist?
The Rules of Hooks state that hooks must only be called at the top level of a React function component or custom hook, never inside loops, conditions, or neste…
Context API vs Redux: When Should You Use Each?
React’s Context API is a built-in mechanism for passing data through the component tree without manual prop drilling, best suited for relatively static or infr…
What Is Prop Drilling and How Do You Avoid It?
Prop drilling is passing a piece of data through several intermediate components via props purely so a deeply nested child can read it, even though those inter…
What Are the Main State Management Patterns in Frontend Apps?
Frontend state management patterns fall into a spectrum from local component state, through lifted/shared state via props and context, to centralized global st…
How Do You Design a Good Custom React Hook?
A well-designed custom hook extracts reusable stateful logic — not UI — behind a function starting with “use”, returning a small, purposeful API (values and fu…
What Are Optimistic UI Updates and How Do You Implement Them?
Optimistic UI updates mean the interface applies the expected result of an action immediately, before the server confirms it, and only rolls back to the previo…
Controlled Forms in React: Performance Tradeoffs?
Controlled form inputs store every field’s value in React state and re-render on each keystroke, which gives predictable, single-source-of-truth data but can c…
What is Terraform?
Terraform is an open-source Infrastructure as Code tool that lets you define cloud and on-premises resources in declarative configuration files, then plans and…
What are Terraform Workspaces and When Should You Use Them?
Terraform workspaces let a single configuration directory manage multiple independent state files — for example dev, staging, and prod — by switching an active…
What Do terraform plan and terraform apply Do?
"terraform plan" computes and displays a dry-run diff between your declared configuration and the real infrastructure recorded in the state file, while “terraf…
What Are Terraform Providers and How Do They Work?
A Terraform provider is a plugin that translates Terraform’s declarative HCL resource blocks into API calls against a specific platform, such as AWS, Azure, GC…
What is Infrastructure Drift and How Do You Detect and Prevent It?
Infrastructure drift happens when the real state of provisioned infrastructure diverges from what its infrastructure-as-code definition declares — usually beca…
How Does terraform import Work and When Would You Use It?
`terraform import` brings an existing resource that was created outside Terraform — manually in a console, via another tool, or from a legacy setup — under Ter…