UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 228 B
import{peekConfig as u}from"@expofp/config";export function eventScopedValue(r){let e,t=!1,n;return()=>{const o=u();return(!t||e!==o)&&(n=r(),e=o,t=!0),n}}export function eventScopedCache(){return eventScopedValue(()=>new Map)}