Releases: jozsi/react-cosmos-wrapper-proxy
`defaultEnabled`: documented and overridable
The defaultEnabled
option introduced in v1.5.0
is now documented in the README and overridable. If defaultEnabled: true
in proxy config, you can selectively disable it in the fixture using myFixtureKey: false
(e.g. mui: false
)
This release also bumps the dependencies to their latest and formats the code using prettier.
`defaultEnabled` option
Prioritize fixture props > HoC props
When using a HoC, it will append some props to the component. Previously, the HoC props were overwriting the ones declared in the fixture, this prevented us to mock some props sent by the HoC (e.g. isSubmitting
).
This has been fixed, props declared in the fixture will override the ones passed from the HoC - if they conflict on merge.
HoC props fix
Props sent from a decorator/HoC to the wrapped component got swallowed by Cosmos' internal PropsProxy.
To work this around, the props are now appended to the fixture prop list.