Skip to content
Source
Sign inSign up
TanStack/router

fix: decouple server functions caller and provider #5712

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/5712/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 23 changed files with 10 additions and 19 deletions (loading 22).

x
0 of 23 viewed, 23 left
10 additions and 19 deletionspackages/directive-functions-plugin/src/compilers.tsModified
View file
@@ -41,7 +41,6 @@
​
export type CompileDirectivesOpts = ParseAstOptions & {
directive: string
- directiveLabel: string
getRuntimeCode?: (opts: {
directiveFnsById: Record<string, DirectiveFn>
}) => string
@@ -49,26 +48,20 @@
replacer: ReplacerFn
filename: string
root: string
+ isDirectiveSplitParam: boolean
+ directiveSplitParam: string
​
-function buildDirectiveSplitParam(opts: CompileDirectivesOpts) {
- return `tsr-directive-${opts.directive.replace(/[^a-zA-Z0-9]/g, '-')}`
-}
-​
export function compileDirectives(opts: CompileDirectivesOpts): {
compiledResult: GeneratorResult
directiveFnsById: Record<string, DirectiveFn>
- isDirectiveSplitParam: boolean
} {