← Back to Examples
PollingComponent

THE MOBILE DEVELOPER BATTLE

Language Poll

0 votes

Swift: 50%Kotlin: 50%

Two modern languages enter, only one leaves. Choose your favorite syntax and watch the results update in real-time.

Manually reads from the database periodically and re-renders when the result changes. This component polls the database every 2s to aggregate votes. It demonstrates server-side Actions that insert rows, while the polling loop naturally picks up the changes.