Git Product home page Git Product logo

Comments (6)

vlio20 avatar vlio20 commented on June 30, 2024 1

I think it would be better to have such configuration on the app level and not inside the lib. As there are multiple ways in which you could provide the configuration to the different decorators.

As more as I am thinking about a global configuration the less I want it to be part of the lib.

from utils-decorators.

vlio20 avatar vlio20 commented on June 30, 2024

@Nemo9439 any suggestions?

from utils-decorators.

tripodsgames avatar tripodsgames commented on June 30, 2024

@Nemo9439 any suggestions?

@vlio20
I'm testing a branch with a global configuration object, so we can modify the settings at a global level.
EX:

Config.Global.disableCache = true;

I want your opinion on this

from utils-decorators.

vlio20 avatar vlio20 commented on June 30, 2024

@tripodsgames, I would like to avoid that because of the different configuration options that the different decorators have. Any other suggestions?

from utils-decorators.

tripodsgames avatar tripodsgames commented on June 30, 2024

@tripodsgames, I would like to avoid that because of the different configuration options that the different decorators have. Any other suggestions?

And a base configuration per decorator?
EX:

memoizeAsync.DefaultSettings.disableCache = true;

It would even be useful to configure a default configuration.
EX:

memoizeAsync.DefaultSettings.expirationTimeMs = 10000;

from utils-decorators.

scaljeri avatar scaljeri commented on June 30, 2024

This issue is already old, maybe it should be closed. But anyway, my suggestion to @Nemo9439 is to write a wrapper decorator which does what he needs. I did something similar in this stackblitz

from utils-decorators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.