Got it, it’s done like this:
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
setupComponent() {
withPluginApi("0.12.3", api => {
console.log(api.getCurrentUser());
});
},
};
Got it, it’s done like this:
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
setupComponent() {
withPluginApi("0.12.3", api => {
console.log(api.getCurrentUser());
});
},
};