Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.96.0 Realtime dashboard #296

Merged
merged 32 commits into from
Oct 14, 2020
Merged

v0.96.0 Realtime dashboard #296

merged 32 commits into from
Oct 14, 2020

Conversation

mikecao
Copy link
Collaborator

@mikecao mikecao commented Oct 14, 2020

@vercel
Copy link

vercel bot commented Oct 14, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mikecao/umami/nw36tas6j
✅ Preview: https://umami-git-dev.mikecao.vercel.app

@mikecao mikecao merged commit f13d7cf into master Oct 14, 2020
export default function ActiveUsers({ websiteId, className }) {
const shareToken = useShareToken();
const { data } = useFetch(`/api/website/${websiteId}/active`, {
interval: 60000,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered using swr for handling this realtime logic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants