next-remote-refresh
next-remote-refresh copied to clipboard
auto add useRemoteRefresh hook
Just the start of this PR, not sure if it's viable or not. The current state of this is grabbing the wrong _app
file. I don't know enough about NextJS internals for this, but thinking we can detect if an _app
file is present and inject the hook or construct our own _app
wrapper. An AST transform is probably better here, but wanted minimal performance impact if possible.
closes #6