Skip to content

Commit 4c076a0

Browse files
authored
docs: small typo fix
1 parent f7e4a80 commit 4c076a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • www/apps/book/app/learn/fundamentals/modules/options

www/apps/book/app/learn/fundamentals/modules/options/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default async function helloWorldLoader({
123123

124124
## Validate Module Options
125125

126-
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.
126+
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.
127127

128128
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.
129129

0 commit comments

Comments
 (0)