Results 66 comments of xialvjun

I don't want go's multiple return values. But I want js/ts's returning dict or tuple.

Another use case is ```gql generic Pagination { total: Int! limit: Int! offset: Int! results: [T!]! } type Person { id name # ... } type Query { search_person(limit: Int...

I just want to mention that maybe we should use alphabetical order rather than last access time order in file tree.

```sh > mammoth generate -c postgres://localhost/my_db -o src/tables.ts # Now my_db should have a table 'migration' and with a migration record. And comes out two files 'migrations/001.sql' and 'src/tables.ts' ```...

There are just 2 development mode: 1. Manage the database schema with other things. Use `mammoth generate` and integrate with CI to help development; 2. Manage the database schema with...

Make `interface DocumentNode` generic, like `DocumentNode`, so many community tools can use it. For example: `@apollo/hooks` can just `useQuery(gqls.xxx_document)` instead of `useQuery(gqls.xxx_document)`, and the type of `gqls.xxx_document` can be declared...

As to `Debounce` or `Throttle`, I think `LifeCycle` is much more common: like in https://github.com/xialvjun/xialvjun.github.io/blob/master/_posts/2018-05-22-react-render-props.md ```jsx { const plist = props.list, slist = state.list; if (plist.length > slist.length) { return...

:-O Write a `Debounce and Throttle` component is easy. But the hard point is to decide should we include it in `react-powerplug`.

No, you should not use SFC. Using SFC, it's safe, but it's slow. Use Component instead. ```jsx export class Ref extends Component { ref = React.createRef(); render() { return this.props.children(this.ref);...