Skip to content
Tutorials/Build a football productIntermediate11 min read

Build a fast football match centre

Combine fixtures, live states, summary events, statistics, formations, images and odds into one preloaded football match-centre model.

Flow / One prepared model, every match tab
  1. Step 1: Fixtures

    Identity and kickoff

  2. Step 2: Live updates

    States, goals and minutes

  3. Step 3: Detail store

    Summary, stats and teams

  4. Step 4: Match centre

    Instant saved-data tab switches

Begin with a durable fixture model

For a match centre with standalone detail and images, use Growth or Pro. Starter can build a selected-league scoreboard from its permitted feeds, but does not include standalone match lookups, profiles or image routes. Import fixtures under static match ID, including competition, stage/group, actual date, both team IDs and a kickoff timestamp normalised only after confirming its timezone.

Use scheduled, finished and live as filtered presentations of saved data. A past kickoff is not enough to classify a match as live, and disappearing from a live-only feed does not prove full time. Reconcile using a scores or fixture endpoint available to your plan.

Collect detail once instead of once per tab

Use competition statistics to collect multiple relevant matches efficiently and single-match statistics for a known match where appropriate. Save summary, statistics, confirmed teams, substitutes and player statistics as separate optional sections of your combined model.

Prepare likely-to-be-opened matches in the background. When a visitor switches tabs, return the already saved section and let your collector update it independently. Do not make a summary click, lineup click and statistics click each start a separate cold request for the same match.

Reconcile goals, cards and substitutions

The same incident may appear in more than one feed representation. Deduplicate with a combination of match ID, team, incident type, player identity and minute, while preserving genuine separate cautions. Names can be abbreviated differently, so use player IDs whenever supplied.

For substitutions, use explicit entering and leaving player IDs. Display an on/off pairing only when the record provides it; do not infer roles from list position. Keep stoppage time and extra-time periods distinct rather than flattening every event onto a guessed minute.

Build a stable page with useful empty states

Reserve image dimensions and load portraits from your saved image store. Keep the calendar stable while switching views. Select the first actual available fixture when your interface requires a populated detail panel, but never create a fictional match to fill a space.

A kickoff countdown uses the actual timestamp and a reliable clock. When it reaches zero, wait for supplied match state instead of inventing a live minute counter. Use separate presentation states for no fixtures, unavailable optional detail and a failed refresh.

  • Home team on the left, away team on the right.
  • Never display absent statistics as measured zero.
  • Use confirmed formations only when supplied.
  • Keep source record times available in your application.

Test a realistic set of fixtures

Check a future match, a live match, a completed match, a match with substitutions and a fixture with missing optional sections. Compare every join by ID and confirm that changing tabs does not generate unnecessary external requests.

On mobile, give the match content the available width, let odds tables scroll within their own boundary and avoid page-wide horizontal overflow. Native rendering supports your own HTML and interaction control, but it is not a guarantee of indexing or search ranking.

All 51 tutorials