Ngoc Dao
Ngoc Dao
I think that this library is better than https://github.com/kevinludwig/pgn-parser: https://github.com/shaack/cm-pgn
It turns out that the chess piece move animation becomes strange if we use % unit. A simple solution is in `calculateSquareSize` just return `(containerEl.width() - 1) / 8`.
Sorry, the above works on Chrome, but not Firefox (board rows will overflow to their next rows).
Back to my first msg and the animation problem. It seems that the animation problem is solved by using px at `buildPiece` when we call that method for animation, and...
> save the promiseFn as well... I think we can't use `promiseFn` as part of the cache key, because: * `promiseFn` can be created dynamically, different instances of the same...
For now, I'm using this wrapper in my projects: ```typescript import originalUsePromise from 'react-promise-suspense' type Options = { category?: string lifespan?: number } export default function usePromise( promise: (...inputs: any[])...
@namnm From the issues you created at this repo, it seems you are very passionate about this project, and you have more than a year of experience with this project,...
> you can also pass a lifespan for the promise cache using usePromise(promiseFn, [], 1000), would that be enough? For me, setting the lifespan is good enough. As I'm using...
I would like to have this typed feature, because the current `usePromise` cannot catch type error like this: ``` function getApple(id: string): Promise {...} function useOrange(id: string): Orange { return...
> useDataPageV2: false Would you please give more details about that workaround? Where/how do you set that option?