const {charactersApi} = require("../../../rpdata/api/Character") module.exports = class { onCreate() { this.state = { nicks: [], } } onMount() { charactersApi.unknownNicks(100).then(unknowns => { this.state.nicks = unknowns.map(u => u.nick) }).catch(err => { console.warn("Failed to get unknown nicks:", err) }) } }