(path1, path2)
| 11 | |
| 12 | const convertKeysToString = (arr) => (arr||[]).map((key) => String(key)); |
| 13 | const isPathEqual = (path1, path2) => ( |
| 14 | Array.isArray(path1) && |
| 15 | Array.isArray(path2) && |
| 16 | JSON.stringify(convertKeysToString(path1)) === |
| 17 | JSON.stringify(convertKeysToString(path2)) |
| 18 | ); |
| 19 | |
| 20 | export const useFieldError = (path, schemaState, subscriberManager) => { |
| 21 |
no test coverage detected