Ghost/ghost/admin/mirage
Kevin Ansfield 27e771b3a8
🐛 Fixed Admin search sometimes stalling on first query (#20143)
closes https://linear.app/tryghost/issue/MOM-103

- the `yield waitForProperty(...)` call that was supposed to return once the content refresh occurred never reached a valid state so the first search query (or any later query) where a content refresh occurred would never resolve causing search to look like it had stalled
- switched to waiting for the last running task to resolve instead which does the same as the previous code intended
- exported the `getPosts` request handler function so in mirage config so we can re-use it with different timing on a per-case basis
2024-05-06 21:04:13 +00:00
..
config 🐛 Fixed Admin search sometimes stalling on first query (#20143) 2024-05-06 21:04:13 +00:00
factories
fixtures
models
scenarios
serializers
.eslintrc.js
config.js
routes-dev.js
routes-test.js
utils.js