Socket
Socket
Sign inDemoInstall

ember-simple-track-helper

Package Overview
Dependencies
56
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-simple-track-helper

A tiny helper to make small pieces of tracked state in Ember templates.


Version published
Maintainers
3
Install size
3.68 MB
Created

Changelog

Source

v2.0.0 (2022-11-15)

:boom: Breaking Change
  • #97 convert addon to v2 format (@SergeAstapov)
  • #94 Drop support for Node 10 and 12 (@SergeAstapov)
:house: Internal
  • #100 update v2 addon setup (@SergeAstapov)
  • #96 run npx ember-cli-update --to=4.8.0 to align with the latest blueprint (@SergeAstapov)
  • #95 convert to monorepo (@SergeAstapov)
Committers: 1

Readme

Source

ember-simple-track-helper

A tiny helper to make small pieces of tracked state in templates.

Useful for scenarios where the only reason to have a backing class is to host some single piece of tracked state—for example, whether to show or hide a modal, with a default state of false:

{{#let (track false) as |toggle|}}
  {{#unless toggle.value}}
    <button {{on "click" (fn toggle.update true)}}>Show it!</button>
  {{/unless}}
  <MyModal
    @isShowing={{toggle.value}}
    @onClose={{fn toggle.update false}}
  />
{{/let}}

(For folks from outside Ember: it's just like useState, but via autotracking.)

Compatibility

  • Ember.js v3.28 or above
  • Ember CLI v2.13 or above
  • Node.js v14 or above
  • ember-auto-import v2.0.0 or above (this is v2 addon)

TypeScript

This project follows the current draft of the Semantic Versioning for TypeScript Types proposal.

  • Currently supported TypeScript versions: v4.3 - v4.8
  • Compiler support policy: simple majors
  • Public API: all published types not in a -private module are public

Installation

ember install ember-simple-track-helper

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Last updated on 15 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc