Skip to content

Errors: LoaderNameConflict

An error thrown when a loader is added with the same name as a loader on one of the route's ancestors. A route's data combines the loaders of every match, so the same name twice would be ambiguous rather than an override.

Extends

  • Error

Constructors

Constructor

ts
new LoaderNameConflict(name?): LoaderNameConflict;

Parameters

ParameterType
name?string

Returns

LoaderNameConflict

Overrides

ts
Error.constructor

Methods

isError()

ts
static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters

ParameterType
errorunknown

Returns

error is Error

Inherited from

ts
Error.isError

Properties

PropertyTypeInherited from
cause?unknownError.cause
messagestringError.message
namestringError.name
stack?stringError.stack