File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ export class Snaproll {
257
257
this . store = createStore ( options )
258
258
}
259
259
260
- private idle ( ) {
260
+ public idle ( ) {
261
261
const store = this . store
262
262
263
263
if ( store . state !== TypeState . Active || subscriptionActive ( store . subscriptions ) ) {
@@ -329,15 +329,15 @@ export class Snaproll {
329
329
330
330
public subscribe (
331
331
value : SnaprollSubscription ,
332
- options ?: { activate ?: boolean } ,
332
+ options ?: { immediate ?: boolean } ,
333
333
) : SnaprollSubscriptionControls {
334
334
// eslint-disable-next-line typescript/no-this-alias
335
335
const self = this
336
336
const state = self . store
337
337
338
338
if ( subscriptionFind ( value , state . subscriptions ) === undefined ) {
339
339
const reference = state . subscriptions
340
- const active = options ?. activate !== false
340
+ const active = options ?. immediate !== false
341
341
state . subscriptions = [ ...reference , { active, value } ]
342
342
343
343
if ( state . state === TypeState . Idle ) {
You can’t perform that action at this time.
0 commit comments