you can pass `cb` directly as a dependency instead of adding an extra fn.