Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Mar 18, 2020
1 parent e4a150a commit b95b626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createContext.lua
Expand Up @@ -102,7 +102,9 @@ local function createConsumer(context)
--
-- To avoid sending a redundant update, we compare the new value
-- with the last value that we updated with (set in didUpdate) and
-- only update if they differ.
-- only update if they differ. This may happen when an update from a
-- provider was blocked by an intermediate component that returned
-- false from shouldUpdate.
self.disconnect = self.contextEntry.onUpdate:subscribe(function(newValue)
if newValue ~= self.lastValue then
-- Trigger a dummy state update.
Expand Down

0 comments on commit b95b626

Please sign in to comment.