• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 30c6b14cf72bf2df4c2ac8a578b09d5053a0b516

14 Jul 2025 08:34AM UTC coverage: 53.548% (+0.1%) from 53.412%
30c6b14cf72bf2df4c2ac8a578b09d5053a0b516

Pull #22356

github

kyrylo-polozenko-newfold
fix: lint js
Pull Request #22356: Feature/get redirects

8217 of 14316 branches covered (57.4%)

Branch coverage included in aggregate %.

1 of 23 new or added lines in 9 files covered. (4.35%)

105 existing lines in 8 files now uncovered.

30345 of 57698 relevant lines covered (52.59%)

41381.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/shared-admin/hooks/use-formik-error.js
1
import { useFormikContext } from "formik";
2
import { useMemo } from "@wordpress/element";
3
import { get } from "lodash";
4

5
/**
6
 * @param {Object} props The props.
7
 * @param {string} name The field name.
8
 * @returns {{ error, isTouched, message }} The Formik error state.
9
 */
UNCOV
10
const useFormikError = ( { name } ) => {
×
11
        const { touched, errors } = useFormikContext();
×
12
        const isTouched = useMemo( () => get( touched, name, false ), [ touched ] );
×
13
        const error = useMemo( () => get( errors, name, "" ), [ errors ] );
×
14

15
        return { isTouched, error };
×
16
};
17

18
export  default useFormikError;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc