You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query dict is constructed for dedicated use by a function call
query dict needs to be reused later, ex. by get_query_hits_count()
now you're getting weird errors about "sort must have n values" because a search-after value was mutated into the object you thought was just a clean copy of the query
Side-effect mutation is bad, m'kay?
Current bandaid is to return the dict from a function instead of instantiating it ahead of time, so it's fresh each time, but doing that is how I ended up chasing my tail a second time.
⚔️ Parent Epic / Related Tickets
No response
The text was updated successfully, but these errors were encountered:
💡 Description
get_query_hits_count()
Side-effect mutation is bad, m'kay?
Current bandaid is to return the dict from a function instead of instantiating it ahead of time, so it's fresh each time, but doing that is how I ended up chasing my tail a second time.
⚔️ Parent Epic / Related Tickets
No response
The text was updated successfully, but these errors were encountered: