docs: small typo fix (#12843)

This commit is contained in:
Shahed Nasser
2025-06-26 19:35:27 +03:00
committed by GitHub
parent bf1ed331be
commit 035ef9e4c9

View File

@@ -123,7 +123,7 @@ export default async function helloWorldLoader({
## Validate Module Options
If you expect a certain option and want to throw an error if it's not provided or isn't valid, it's recommended to perform the validation in a loader. The module's service is only instantiated when it's used, whereas the loader runs the when the Medusa application starts.
If you expect a certain option and want to throw an error if it's not provided or isn't valid, it's recommended to perform the validation in a loader. The module's service is only instantiated when it's used, whereas the loader runs when the Medusa application starts.
So, by performing the validation in the loader, you ensure you can throw an error at an early point, rather than when the module is used.