Competition Governor
Functions which are applicable to situations where multiple tournamentRecords are held in shared state.
import { competitionGovernor } from 'tods-competition-factory';
linkTournaments
Links all tournaments currently loaded in state.
engine.linkTournaments();
unlinkTournament
Unlink the tournament specified by tournamentId from other tournaments loaded in state.
engine.unlinkTournament({ tournamentId });
unlinkTournaments
Removes links between all tournaments currently loaded in state.
engine.unlinkTournaments();
removeExtension
Removes an extension from all tournamentRecords loaded into shared state.
engine.removeExtension({ name, discover: true });