mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 06:27:24 +08:00

In a few places throughout the app, when we render the `<GroupChooser />` component, we fetch the full groups list of the site from the `/groups/search` endpoint. This is wasteful because the full groups list is already included in the preloaded data that's sent to the client app on the initial page load, so we can just use this preloaded list for `<GroupChooser />` and we can avoid making an HTTP request. Internal topic: t/147297.