usehooks-ts icon indicating copy to clipboard operation
usehooks-ts copied to clipboard

Update useScript.ts

Open KATT opened this issue 3 years ago • 0 comments

  • Make it so we get initial load status on first mount
  • Add cachedScriptStatuses-record for short-circuting & avoiding DOM-lookup

~Potentially, we could have a global Record<string, string|undefined> defined rather than relying on querySelector to make it faster.~

KATT avatar Aug 29 '22 08:08 KATT