At this moment, I see the only way I can add forcePrefetchRatio
is through install
from @layer0/prefetch/window
, like:
import install from '@layer0/prefetch/window/install'
document.addEventListener('DOMContentLoaded', function() {
install({
forcePrefetchRatio: 1,
})
})
How can I do the same via react/nextjs Prefetch component:
import { Prefetch } from '@layer0/react';
?