-
We were using |
Beta Was this translation helpful? Give feedback.
Answered by
ai
Apr 16, 2023
Replies: 1 comment 3 replies
-
Use something like this: export function getPost (id) {
if (!Template.cache[id]) {
let store = atom()
// add all callbacks
Template.cache[id] = store
}
return Template.cache[id]
}
getPost.cache = {} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use something like this: