Default values issue
Issue:
I need help implementing a form field that:
Initializes with real-time data (unitPrice from Firebase)
Updates automatically only when other property changes (so basiclly defailt value needs to be udpdated when other external property passed
Stops auto-updating after user modification
Resets to new defaults when parent context changes (assetId)
Current Behavior:
When switching assets (assetId changes), price input doesn't update immediately
Real-time price updates sometimes override user modifications
Form initialization race conditions when data loads after mount
I need help implementing a form field that:
Initializes with real-time data (unitPrice from Firebase)
Updates automatically only when other property changes (so basiclly defailt value needs to be udpdated when other external property passed
Stops auto-updating after user modification
Resets to new defaults when parent context changes (assetId)
Current Behavior:
When switching assets (assetId changes), price input doesn't update immediately
Real-time price updates sometimes override user modifications
Form initialization race conditions when data loads after mount