()
| 7 | * Every functional component **must** use this helper. |
| 8 | */ |
| 9 | export function useResourcesNotify() { |
| 10 | const {notify} = useAmpContext(); |
| 11 | useLayoutEffect(() => { |
| 12 | if (notify) { |
| 13 | notify(); |
| 14 | } |
| 15 | }); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @param {import('preact').Ref<T>} ref |
no test coverage detected