Sha256: 5f3f7a153582dfe3f7b5b1312f74021c1c900c996b9c3173ec3a8c495714045c

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

import ObjectResolver from './object_resolver';

export default function(Resolver) {
  return class {
    constructor(options, callback) {
      this._inner = new Resolver(options, callback);
      this._objectResolver = new ObjectResolver(options.fragments, callback);
    }

    get(props, seed) {
      const result = this._inner.get(props, seed);
      return this._objectResolver.get(result, seed);
    }

    dispose() {
      this._inner.dispose();
      this._objectResolver.dispose();
    }
  }
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/src/resolvers/create_recursive_resolver.js
pageflow-react-0.1.0 js/src/resolvers/create_recursive_resolver.js