similar to tanstack query, we should migrate to a single object arg to improve readability and documentation.