next-remote-refresh icon indicating copy to clipboard operation
next-remote-refresh copied to clipboard

auto add useRemoteRefresh hook

Open souporserious opened this issue 2 years ago • 0 comments

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

souporserious avatar Jul 31 '21 02:07 souporserious