diff --git a/README.md b/README.md index 03406e3a4..bc6dda3e8 100644 --- a/README.md +++ b/README.md @@ -1957,7 +1957,9 @@ Thanks to [ggoodman](https://github.com/ggoodman) for suggesting this. ### Cyclical objects -Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop. +Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop in some cases. + +> To detect cyclical objects before they cause problems, consider [this approach](https://gist.github.com/colinhacks/d35825e505e635df27cc950776c5500b). ## Promises diff --git a/deno/lib/README.md b/deno/lib/README.md index 03406e3a4..bc6dda3e8 100644 --- a/deno/lib/README.md +++ b/deno/lib/README.md @@ -1957,7 +1957,9 @@ Thanks to [ggoodman](https://github.com/ggoodman) for suggesting this. ### Cyclical objects -Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop. +Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop in some cases. + +> To detect cyclical objects before they cause problems, consider [this approach](https://gist.github.com/colinhacks/d35825e505e635df27cc950776c5500b). ## Promises