As a theme developer, if you’re using more than just User.current()
, then the replacement is this:
const User = require('discourse/model/user').default;
As a theme developer, if you’re using more than just User.current()
, then the replacement is this:
const User = require('discourse/model/user').default;