Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: timeago not updating live

thecodrr488613a65cc2
diff --git a/apps/web/src/components/time-ago/index.js b/apps/web/src/components/time-ago/index.js
index 015d956a8..a29f528eb 100644
--- a/apps/web/src/components/time-ago/index.js
+++ b/apps/web/src/components/time-ago/index.js
@@ -41,7 +41,7 @@ function TimeAgo({ datetime, live, locale, opts, ...restProps }) {
}, [datetime, live, locale, opts]);
return (
- <Text {...restProps} as="time" dateTime={toTime(datetime)}>
+ <Text ref={timeRef} {...restProps} as="time" dateTime={toTime(datetime)}>
{format(datetime, locale, opts)}
</Text>
);