use a record/object as a signal doesn't seem to work with react #487
-
| 
         Before I create an issue, here is the reproduction: https://stackblitz.com/edit/react-signal-for-state-management-sr6tqk-vvyx3b?file=App.tsx Bother elements use   | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            rschristian
          
      
      
        Jan 3, 2024 
      
    
    Replies: 1 comment 2 replies
-
| 
         Don't use   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        tcoopman
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Don't use
Object.assign, create a new object and assign that, i.e.,disclosure.value = {...disclosure.value, [id]: state }