Skip to content

Commit

Permalink
rename createPrefetchEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Feb 13, 2024
1 parent 89623db commit 8c37ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
import { createHrefFromUrl } from './create-href-from-url'
import { fillLazyItemsTillLeafWithHead } from './fill-lazy-items-till-leaf-with-head'
import { extractPathFromFlightRouterState } from './compute-changed-path'
import { createPrefetchEntry } from './prefetch-cache-utils'
import { createPrefetchCacheEntryForInitialLoad } from './prefetch-cache-utils'
import { PrefetchKind, type PrefetchCacheEntry } from './router-reducer-types'

export interface InitialRouterStateParameters {
Expand Down Expand Up @@ -95,7 +95,7 @@ export function createInitialRouterState({
const url = new URL(location.pathname, location.origin)

const initialFlightData: FlightData = [['', initialTree, null, null]]
createPrefetchEntry({
createPrefetchCacheEntryForInitialLoad({
url,
kind: PrefetchKind.AUTO,
data: [initialFlightData, undefined, false, couldBeIntercepted],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function prefixExistingPrefetchCacheEntry({
/**
* Use to seed the prefetch cache with data that has already been fetched.
*/
export function createPrefetchEntry({
export function createPrefetchCacheEntryForInitialLoad({
nextUrl,
tree,
prefetchCache,
Expand Down

0 comments on commit 8c37ac6

Please sign in to comment.