FIND YOUR NEXT FEW LINES

Results for “immutable update”

Small, practical examples. Search by task or narrow things down below.

92 snippets foundClear filters
TypeScriptSafe data handling

Update an object with a readonly input

Create a changed copy while retaining the original.

readonly✓ Tested
ReactAccessibility & events

Announce a status update politely

Announce a status update politely with a small React component and explicit browser behavior.

React✓ Tested
AngularAccessibility & reusable patterns

Announce a status update with a live region

Announce a status update with a live region with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
C#Types & reliable control flow

Create a modified copy of an immutable record

C#: A with expression creates a shallow copy with selected changed properties.

C#✓ Tested
GoGetting Started

Declare and update a variable

Declare and update a variable using a complete Go program with explicit sample inputs.

Go✓ Tested
JavaRecords & reliable control flow

Define an immutable data record

Java: A local record gives a small Java data carrier named accessors and value semantics.

Java✓ Tested
ReactCustom hooks

Expose immutable collection operations

Expose immutable collection operations with a small React component and explicit browser behavior.

React✓ Tested
PostgresRows & writes

Insert or update on a key conflict

Use a unique key to update an existing row.

ON CONFLICT✓ Tested
ReactPerformance & rendering

Mark a nonurgent state update as a transition

Mark a nonurgent state update as a transition with a small React component and explicit browser behavior.

React✓ Tested
AngularLifecycle & observable data

Publish updated state through a BehaviorSubject

Publish updated state through a BehaviorSubject with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
SQLSchema design & transactions

Read updated base-table values through a view

SQL: An ordinary view reflects later changes to its underlying data.

SQL✓ Tested
SQL ServerSchema design & transactions

Read updated base-table values through a view

SQL Server: An ordinary view reflects later changes to its underlying data.

SQL Server✓ Tested