Closed sdpollack closed 5 years ago
const vm = useDotnetify("myVMController", initialState);
That function may not return the vm
object. I'm not the maintainer of that library, either you raise an issue/PR with them, or fork and fix their code.
Do you have any plans to support React Hooks directly in dotNetify?
I do, no time frame, but PR is welcome if you want to make it happen sooner. I'm closing this issue as 'not dotNetify bug'. Let's use #177 to track React hook support.
Thanks for your fast response. I'm a very novice developer and I fear submitting a PR is over my head.
I'm using dotNetify with use-netify and React hooks. I am receiving client updates fine, but now I'm trying to add updates to the server and I'm getting "TypeError: vm.$dispatch is not a function" error.
Here is some of the code:
...