sanity icon indicating copy to clipboard operation
sanity copied to clipboard

More async callbacks in defineConfig

Open heggemsnes opened this issue 3 weeks ago • 0 comments

Is your feature request related to a problem? Please describe. We often want to customise our studio based on user roles or who they are. This works great in the structure builder as the structure builder in it self can be async.

Being able to pass an async callback function to keys like plugins, templates and document actions would allow us to more fully customise the Studio experience.

Another great thing would be if we were able to make the entire defineConfig async so we could in theory delegate a separate workspace for each user.

Describe the solution you'd like

  • Async defineConfig
  • Async actions (Can be somehow solved in the action itself)
  • Async templates
  • Async plugins (tools can be async but not plugins)
  • Async search config filters

Describe alternatives you've considered Currently it works great with the async structure. Currently we can achieve this by multiple studio URL's with different config and a redirect in the desk structure but this is hardly ideal.

heggemsnes avatar Jun 24 '24 12:06 heggemsnes