To avoid issues with re-calculating immediately on change while keeping reactive values in-sync, use reactive accessors to implement pull-based reactive values.
// Initialized with <Component a=15 />
export let a = 10;
let b = 20;
To avoid issues with re-calculating immediately on change while keeping reactive values in-sync, use reactive accessors to implement pull-based computed values. Propose using computed
for pull-based computed values that are kept synchronized and reactive
to run functionality on initialize and before beforeUpdate
.
Option 2 uses a single reactive:
label and can re-run blocks as-needed based on when reactive values are accessed. I think there are a few downsides to this (side effects could happen at strange times), but it's a bit simpler since it presents a single reactive API.
// Initialized with <Component a=15 />
Private Const API_KEY As String = "YOUR_API_KEY" | |
Sub CreateTracking(Carrier As String, TrackingNumber As String) | |
Dim Client As New WebClient | |
Client.BaseUrl = "https://api.aftership.com/v4" | |
Dim Request As New WebRequest | |
Request.Resource = "trackings" | |
Request.Method = WebMethod.HttpPost | |
Request.AddHeader "aftership-api-key", API_KEY |
<Route path="/" exact> | |
Home | |
</Route> | |
<Route path="/a"> | |
A | |
<Route path="/a/nested">Nested</Route> | |
</Route> | |
<Route path="/b/:id"> | |
B {{$router.params.id}} | |
</Route> |
I hereby claim:
To claim this, I am signing this object:
const co = require('bluebird').coroutine; | |
let taskId = 0; | |
class Task { | |
constructor(values = {}) { | |
const { id = `task${taskId++}`, files = [], globs = [], value } = values; | |
this.id = id; | |
this.files = files; | |
this.globs = globs; |
---
title: RFC: Task / Plugin Unification
---
This RFC presents an alternative plugin API that matches the current task API.
Unifying tasks and plugins should encourage task reuse (as plugins), simplify the overall API, and allow a single core mental model for how taskr tasks and plugins function.
license: mit | |
height: 550 | |
border: yes |
Private pClient As WebClient | |
Public Property Get Client() As WebClient | |
If pClient Is Nothing Then | |
Set pClient = New WebClient | |
pClient.BaseUrl = "https://ops.epo.org/3.1/" | |
' Setup authenticator (note: provide consumer key and secret here | |
Dim Auth As New OPSAuthenticator | |
Auth.Setup "CONSUMER_KEY", "CONSUMER_SECRET" | |
Sub PostFiles() | |
' Note: Add reference to Microsoft Scripting Runtime | |
' (Tools > References) | |
' References: | |
' http://www.xl-central.com/list-files-fso.html | |
' http://stackoverflow.com/a/20391100/1240745 | |
Dim FSO As New FileSystemObject | |
Dim XmlFolder As Folder |