I have an extension that displays all the tags I follow in the fof/follow-tags
extension.
On beta.16 I used code like this to display them:
import Component from 'flarum/common/Component';
import Link from 'flarum/common/components/Link';
import tagLabel from 'flarum/tags/helpers/tagLabel';
export default class MyTagsList extends Component {
view() {
const tags = app.store.all('tags').filter((tag) => tag.subscription());
return (
<div>
<p>{app.translator.trans('my-tags.forum.index.my_tags')}</p>
{tags.length ? (
tags.map((tag) => tagLabel(tag, { link: app.route.tag(tag) }))
) : (
<span>
{app.translator.trans('my-tags.forum.index.no_tag_following')}{' '}
<Link href={app.route('tags')}>{app.translator.trans('my-tags.forum.index.see_tags')}</Link>
</span>
)}
</div>
);
}
}
But Flarum 1.0 no longer loads all secondary tags into app.store
. How can I load only the tags I am following?