@preact/signals-react v2.0.0 breaking changes #539
                  
                    
                      javierhersan
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 2 replies
-
| 
         Because there was a number of edge cases w/ v1 that could not ever be resolved (not to mention the React team was very vocal about their distaste for it). As React doesn't offer a plugin API, and shows absolutely no interest in offering one, this is the next-best option. 
 Babel isn't slow, but, if you did have issues (and I urge you to benchmark first), you could write an SWC/etc port instead.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello to everyone, could someone explain me why the following BREAKING CHANGES have been introduced in v2.0.0.
I will give an example. I have the following global state with signals.
And if i want my component to react to a signal change now I have to use useSignals(), whereas before this was not necessary.
I prefer v1, I do not want to use useSignals() and neither Babel is too slow and outdated.
Why was this BREAKING CHANGE introduced?
Beta Was this translation helpful? Give feedback.
All reactions