Izhaki

Results 97 comments of Izhaki

A few things: > I did not want to hinder a developer's ability to do that if they wanted, for whatever reason. I agree with this decision. I think it...

To be honest, I just came across the [React implementation for this](https://github.com/reactjs/reactjs.org/blob/master/content/docs/hooks-faq.md#is-there-something-like-forceupdate-is-there-something-like-forceupdate), which I reckon is superior to the proposed above: ```js const [, forceUpdate] = useReducer(x => x +...

```js const [, forceUpdate] = useReducer(x => (x + 1) % Number.MAX_VALUE, 0); ``` ?

Benchmarks: ``` x = (x + 1) % Number.MAX_VALUE; 6,842,819 ops/s ±0.89% 98.99% slower ``` ``` x = Object.create(null) 675,664,884 ops/s ±0.66% fastest ``` Yet the slow option takes 6.8...

Have a look at [benchmark](https://www.npmjs.com/package/benchmark). For example usage with React see [Material UI component benchmarking](https://github.com/mui-org/material-ui/blob/v4.6.1/packages/material-ui-benchmark/src/core.js).

I don't know if it solves your problem, but a hint alright: With your code, when you perform a drag, you are going to get an `onClick` event at the...

Another use case (where @bmpinto solution doesn't work): We have multiple elements within a div. Some of these elements are draggable and some are clickable. Upon `onStart` we check if...

@smokku suggestion worked for me. # Background - **Create React App** (babel config patched with [craco](https://github.com/gsoft-inc/craco)) - Source files are **typescript** # Steps - Add `babel-plugin-istanbul` to babel config -...

Same issue... Prettier did some formatting (1 line > 4 lines) and all my previously set breakpoints are now 3 lines early on that file.

I've been using `1.1.0-alpha.1` for a while, and saw this for the first time this morning after fresh `npm install`. On another machine, where `1.1.0-alpha.1` was installed quite some time...