2.2.0-rc.3
Pre-release
Pre-release
Bug Fixes
- Separated
useViewModel
callback overload into separateuseViewModelMemo
hook. There is no guaranteed way of checking whether a function can be used with thenew
operator or not in JavaScript other than attempting a call. This makes it impossible to safely distinguish between the type and callback overload. More information here: https://stackoverflow.com/questions/30758961/how-to-check-if-a-variable-is-an-es6-class-declaration.