Use @directive on the function definition (not the let binding):
let someFn =
@directive("'use memo'")
() => {
Console.log("Hello")
}
function someFn() {
'use memo';
console.log("Hello");
}
Use @directive on the function definition (not the let binding):
let someFn =
@directive("'use memo'")
() => {
Console.log("Hello")
}
function someFn() {
'use memo';
console.log("Hello");
}