@@ -209,12 +209,9 @@ setName("Jane"); // Logs: "Hello, Jane!"
209209
210210### Equality Checking
211211
212- By default , signals use strict equality (` === ` ) to determine if a value has changed :
213-
214- - Primitive values are compared by value
215- - Objects and arrays are compared by reference
216- - Setting a signal to the same reference won ' t trigger updates
217- - Setting a signal to a new object with identical properties will trigger updates
212+ By default , signals use strict equality (` === ` ) to determine if a value has changed .
213+ This means primitive values are compared by value , while objects and arrays are compared by reference .
214+ Setting a signal to the same reference will not trigger updates , but setting it to a new object or array , even if it has identical properties , will trigger updates .
218215
219216### Function Values
220217
@@ -236,15 +233,12 @@ The outer function is the updater, the inner function is your actual value.
236233
237234### Development vs Production
238235
239- ** Development mode :**
240- - Signals track additional metadata for debugging
241- - The ` name ` option provides useful names in dev tools
242- - Warnings are issued for signals created outside reactive contexts
236+ In development mode , signals track additional metadata to aid debugging .
237+ The ` name ` option allows you to assign meaningful names to signals , making them easier to identify in developer tools .
238+ Additionally , Solid issues warnings if signals are created outside of reactive contexts , helping you catch potential issues early .
243239
244- ** Production mode :**
245- - Debugging metadata is stripped
246- - Dev - only options like ` name ` are ignored
247- - No warnings are issued
240+ In production mode , all debugging metadata is stripped away for optimal performance .
241+ Dev - only options like ` name ` are ignored , and no warnings are issued , ensuring that your application runs as efficiently as possible .
248242
249243### Error Handling
250244
0 commit comments