Skip to content

Commit 035ef9e

Browse files
authored
docs: small typo fix (medusajs#12843)
1 parent bf1ed33 commit 035ef9e

File tree

1 file changed

+1
-1
lines changed
  • www/apps/book/app/learn/fundamentals/modules/options

1 file changed

+1
-1
lines changed

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)