Skip to content

Commit 7b34e30

Browse files
committed
update docusaurus
1 parent a30f7f1 commit 7b34e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const [isActive, setIsActive] = useState(false); // Inferred as 'boolean'
116116

117117
Immutability should be a key principle. Wherever possible, data should remain immutable, leveraging types like `Readonly` and `ReadonlyArray`.
118118

119-
Using readonly type prevents accidental data mutations and reduces the risk of bugs caused by unintended side effects.
119+
Using readonly types prevents accidental data mutations and reduces the risk of bugs caused by unintended side effects. This ensures that data integrity is maintained throughout the application lifecycle.
120120

121121
When performing data processing always return new array, object etc. To minimize cognitive load for future developers, aim to keep data objects flat and small.
122122
Mutations should be used sparingly and only as an exception in cases where they are truly necessary, such as when dealing with complex objects, performance-related reasons etc.

0 commit comments

Comments
 (0)