(where, what)
| 27 | |
| 28 | const cache = umap(new WeakMap); |
| 29 | export const render = (where, what) => { |
| 30 | const hook = typeof what === 'function' ? what() : what; |
| 31 | const info = cache.get(where) || cache.set(where, createCache(null)); |
| 32 | info.w = where; |
| 33 | info.W = what; |
| 34 | return $render( |
| 35 | where, |
| 36 | hook instanceof Hook ? |
| 37 | unroll(info, hook) : |
| 38 | (unrollHole(info, hook), hook) |
| 39 | ); |
| 40 | }; |
| 41 | |
| 42 | export { |
| 43 | contextual, |
no test coverage detected