Skip to content

Commit

Permalink
flow and lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Feb 7, 2023
1 parent 289a80b commit e3322e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react-dom-bindings/src/client/ReactDOMHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,12 +1620,12 @@ export function isHostHoistableType(
);
}
case 'link': {
const {onLoad, onError, href} = props;
const {onLoad, onError, rel, href} = props;
if (
namespace === SVG_NAMESPACE ||
typeof props.rel !== 'string' ||
typeof props.href !== 'string' ||
props.href === '' ||
rel !== 'string' ||
href !== 'string' ||
href === '' ||
onLoad ||
onError
) {
Expand All @@ -1642,7 +1642,7 @@ export function isHostHoistableType(
}
switch (props.rel) {
case 'stylesheet': {
const {href, precedence, disabled} = props;
const {precedence, disabled} = props;
if (__DEV__) {
validateLinkPropsForStyleResource(props);
if (typeof precedence !== 'string') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ export const releaseResource = $$$hostConfig.releaseResource;
export const hydrateHoistable = $$$hostConfig.hydrateHoistable;
export const mountHoistable = $$$hostConfig.mountHoistable;
export const unmountHoistable = $$$hostConfig.unmountHoistable;
export const createHoistableInstance = $$$hostConfig.createHoistableInstance;
export type HoistableRoot = mixed;

// -------------------
// Singletons
Expand Down

0 comments on commit e3322e4

Please sign in to comment.