Closed JoviDeCroock closed 4 years ago
Brownie points if we can somehow infer the calling components displayName in Preact also
import { options } from 'preact';
v?: Vnode;
if (!isProd) options.vnode = (v) => { currentVNode = v }
const hook = () => dispatch({ context: { currentComponent: v&&v.name })
Fixed in #28
We are looking at React internals to derive the
displayName
we could defer this to the integration specific implementation and make this a dev-only thing.