faluyiHype
faluyiHype
CCConvex Community
Created by faluyiHype on 7/24/2024 in #support-community
middleware
Hello, I’ve read the articles on middleware and setting them up with customQuery helper functions. I still have a hard time understanding what the proper way to include 3rd party libs before/after a mutation would be. 1. Before: I know we can just make an action that in turn calls the mutation, but the docs highlight that as an anti pattern so I’m wondering if there’s any gotchas that make this the case. 2. After: scheduling an action with a runAfter(0,…) towards the end of your transaction in the mutation. Are these the right approaches?
6 replies