Closed jonathangerbaud closed 1 year ago
Thanks again for filing this! I've made a fix to consistently deal with models marked @@ignore
. Please update "zenstack" and "@zenstackhq/*" packages to "@latest" (version 1.0.0-alpha.81) and it should work now.
Okay, it's working now with the last version. Thanks!
Hello, I got this error when I'm using the React lplugin:
I just checked the code and I think you just need to add a "?" in
https://github.com/zenstackhq/zenstack/blob/main/packages/plugins/react/src/react-hooks-generator.ts
Change
if (mapping?.update || (mapping as any).updateOne) {
Toif (mapping?.update || (mapping as any)?.updateOne) {
(Sorry, too lazy do to a PR...)