SyneticNL/Hyral

View on GitHub
packages/core/src/Resource/Decorator/Resource/lazyLoadingDecorator.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Function lazyLoadingDecorator has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

export default function lazyLoadingDecorator(resource) {
  const dataProperty = Object.getOwnPropertyDescriptor(resource, 'data');

  Object.defineProperties(resource, {
    load: {

    There are no issues that match your filters.

    Category
    Status