Skip to content

Commit

Permalink
Removed component comparator leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Sep 6, 2023
1 parent da25ed0 commit fe16c45
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 250 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,22 +795,6 @@ hydrate(<div />, document.getElementById("app"));

Same as `render()`, but is used to hydrate a container whose HTML contents were rendered by `inferno-server`. Inferno will attempt to attach event listeners to the existing markup.

### `options.componentComparator` ( package `inferno`) DEV only

This option can be used during **development** to create custom component comparator method.
This option will be called on every Component update.
It gets two parameters: lastVNode and nextVNode. When it returns `true` lastVNode will be replaced with nextVNode.
If anything else than `true` is returned it falls to normal behavior.

```javascript
import {options} from 'inferno';

options.componentComparator = function (lastVNode, nextVNode) {
/* custom logic */
return true; // Replaces lastVNode with nextVNode
}
```

### `findDOMNode` (package: `inferno-extras`)
This feature has been moved from inferno to inferno-compat in v6. No options are needed anymore.

Expand Down
16 changes: 0 additions & 16 deletions packages/inferno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,22 +787,6 @@ hydrate(<div />, document.getElementById("app"));

Same as `render()`, but is used to hydrate a container whose HTML contents were rendered by `inferno-server`. Inferno will attempt to attach event listeners to the existing markup.

### `options.componentComparator` ( package `inferno`) DEV only

This option can be used during **development** to create custom component comparator method.
This option will be called on every Component update.
It gets two parameters: lastVNode and nextVNode. When it returns `true` lastVNode will be replaced with nextVNode.
If anything else than `true` is returned it falls to normal behavior.

```javascript
import {options} from 'inferno';

options.componentComparator = function (lastVNode, nextVNode) {
/* custom logic */
return true; // Replaces lastVNode with nextVNode
}
```

### `findDOMNode` (package: `inferno-extras`)
This feature has been moved from inferno to inferno-compat in v6. No options are needed anymore.

Expand Down
218 changes: 0 additions & 218 deletions packages/inferno/__tests__/component.comparator.spec.tsx

This file was deleted.

0 comments on commit fe16c45

Please sign in to comment.