We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b20bd commit 87b89eaCopy full SHA for 87b89ea
_official-blog-tutorial/app/singleton.server.ts
@@ -4,7 +4,7 @@
4
5
export const singleton = <Value>(
6
name: string,
7
- valueFactory: () => Value
+ valueFactory: () => Value,
8
): Value => {
9
const g = global as any;
10
g.__singletons ??= {};
_official-jokes/app/utils/singleton.server.ts
0 commit comments