body, wouldn't that just recreate that function for nothing anytime
useScope
is called?
r
Rob Murdock
11/17/2020, 1:42 PM
@Joost Klitsie could be! Haven’t run into any issues I’ve traced back to that at this time. I tend to use this at a wrapper component level and then pass it down (technically I pass down a cached function that lets you use the scope, but… details), so that could be part of why I don’t notice anything.
m
Marc Knaup
11/17/2020, 1:44 PM
There’s nothing wrong with it. It’s simply unused in subsequent calls and hence an unnecessary object allocation 🙂
👍 1
j
Joost Klitsie
11/17/2020, 2:33 PM
yeah yeah I didn't mean a big issue, just unnecessary 🙂