Skip to content

Commit 22f46a4

Browse files
committed
Add precedence note
1 parent 6d29a4e commit 22f46a4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/features/muxing.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,19 @@ request using the first matching rule. If the prompt contains multiple files in
131131
context, the first rule that matches _any_ of the files is used. If no filter is
132132
matched, the catch-all rule applies.
133133

134+
:::note More about precedence
135+
136+
The order of the rules is important. If you have a more specific rule that
137+
should take precedence over a general rule, place it higher in the list.
138+
139+
Keep substring matching in mind. For example, if you have a filter for `.ts`
140+
files placed above a rule for `.tsx` files, the `.tsx` rule cannot be reached
141+
because the `.ts` filter matches first.
142+
143+
:::
144+
145+
#### Example configuration
146+
134147
<ThemedImage
135148
alt='An example showing several muxing rules for different file types'
136149
sources={{

0 commit comments

Comments
 (0)