sui
                                
                                 sui copied to clipboard
                                
                                    sui copied to clipboard
                            
                            
                            
                        [sui-pde] use structured args in useFeature
Package
@s-ui/pde@2
after https://github.com/SUI-Components/sui/pull/1410
Description
The hooks signature for useExperiment and useFeature is not coherent as:
- useExperiment({experimentName, ...})has structured args so you can pass to it the args you want in each field, p.ex.
useExperiment({experimentName: 'myExperiment'})
useExperiment({experimentName: 'myExperiment', adapterId: 'myAdapter'})
- useFeature(...)has raw args so you need to pass all args to fill the last one
useFeature('myFeature', null, null, 'myAdapter')
It would be nice to have both hooks signatures with structured args.
Agree! It means a major version [BREAKING CHANGE]
Request accepted
@rmoralp, can you please assign this issue to me?