Skip to main content

Troubleshooting

Common mistakes

  1. state update is not wrapped inside act()
    • Use a find query rather than a get query.
    • If a find query can’t be used the waitFor method is the next item that should be attempted.
    • If neither of the above resolves the warning, the operation causing the issue should be mocked.
    • If the operation causing the issue can’t be mocked out you can wrap the action in act().