enigma.js icon indicating copy to clipboard operation
enigma.js copied to clipboard

Feature: Optional (packaged) mixins

Open peol opened this issue 7 years ago • 3 comments

This is an idea we've been bouncing around internally for a while. The idea is that we deliver a npm package containing generally useful mixins that may be needed in many use cases. Below I'll outline some of the ones I've identified and suggest this package would contain.

Ideas/feedback welcome!

  • [ ] getObject cache (#270)
  • [ ] Pending call cache (#271)
  • [ ] Normalize Doc QIX API (#272)
  • [ ] Garbage collector/memory optimizer (#273)
  • [ ] Access global/doc from generated APIs (#274)
  • [ ] Generic object state (#275)

peol avatar Aug 25 '17 11:08 peol

@peol I really like the idea of mixins, but please separate this in two different packages:

  1. helpers (Naming, Doc/Global in API,...)
  2. caching, garbage collection I really like the concept of the pure enigmaJS and we always do the caching in our code, because than we have 100% control

konne avatar Sep 26 '17 06:09 konne

@peol for the topic naming: I really prefer if qlik would change the api of the engine and this mixings could be the backward compatible option, to don't break existing extensions,...

konne avatar Sep 26 '17 06:09 konne

thanks @konne — the idea here is that these mixins are provided in an opt-in manner. It's not all or none so it's up to you what you want to use :)

peol avatar Sep 26 '17 06:09 peol