Skip to content

Commit dd8cdff

Browse files
committed
docs: add a comment about the zero fallbacks for stars and such
1 parent 25da402 commit dd8cdff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/composables/useRepoMeta.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ export function useRepoMeta(repositoryUrl: MaybeRefOrGetter<string | null | unde
762762
repoRef,
763763
meta,
764764

765+
// TODO(serhalp): Consider removing the zero fallback so callers can make a distinction between
766+
// "unresoled data" and "zero value"
765767
stars: computed(() => meta.value?.stars ?? 0),
766768
forks: computed(() => meta.value?.forks ?? 0),
767769
watchers: computed(() => meta.value?.watchers ?? 0),

0 commit comments

Comments
 (0)