Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions benchmarks/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ function Leaf() {
);
}

const lazies = new Array(600)
.fill(600)
.map(() =>
lazy(() =>
Promise.resolve().then(() => ({
default: (props) => <div>{props.children}</div>
}))
)
);
// oxlint-disable-next-line no-new-array
const lazies = new Array(600).fill(600).map(() =>
lazy(() =>
Promise.resolve().then(() => ({
default: (props) => <div>{props.children}</div>
}))
)
);
function PassThrough(props) {
const Lazy = lazies(props.id);
return <Lazy {...props} />;
Expand Down
1 change: 1 addition & 0 deletions benchmarks/lib/benchmark-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class Suite {
prev = now;
const times = [];
do {
// oxlint-disable-next-line no-unused-vars
for (let i = iterations; i--; ) executor(++count);
prev = now;
now = performance.now();
Expand Down
2 changes: 1 addition & 1 deletion demo/src/entry-client.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { hydrate } from 'preact';
import { App } from './App';

const config = { attributes: true, childList: true, subtree: true };
const mut = new MutationObserver((mutationList, observer) => {
const mut = new MutationObserver((mutationList) => {
for (const mutation of mutationList) {
if (mutation.type === 'childList') {
console.log('A child node has been added or removed.', mutation);
Expand Down
2 changes: 1 addition & 1 deletion jsx.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/jsx'); // eslint-disable-line
module.exports = require('./dist/jsx');
Loading