code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function executeDispatch(event, simulated, listener, inst) { var type = event.type || 'unknown-event'; event.currentTarget = EventPluginUtils.getNodeFromInstance(inst); ReactErrorUtils_1.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); event.currentTarget = null; }
Dispatch the event to the listener. @param {SyntheticEvent} event SyntheticEvent to handle @param {boolean} simulated If the event is simulated (changes exn behavior) @param {function} listener Application-level callback @param {*} inst Internal component instance
executeDispatch
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function executeDispatchesInOrder(event, simulated) { var dispatchListeners = event._dispatchListeners; var dispatchInstances = event._dispatchInstances; { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { for (var i = 0; i < dispatchListeners.length; i++) { if (event.isP...
Standard/simple iteration through an event's collected dispatches.
executeDispatchesInOrder
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function executeDispatchesInOrderStopAtTrueImpl(event) { var dispatchListeners = event._dispatchListeners; var dispatchInstances = event._dispatchInstances; { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { for (var i = 0; i < dispatchListeners.length; i++) { if (event....
Standard/simple iteration through an event's collected dispatches, but stops at the first dispatch execution returning true, and returns that id. @return {?string} id of the first dispatch execution who's listener returns true, or null if no listener returned true.
executeDispatchesInOrderStopAtTrueImpl
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function executeDirectDispatch(event) { { validateEventDispatches(event); } var dispatchListener = event._dispatchListeners; var dispatchInstance = event._dispatchInstances; !!Array.isArray(dispatchListener) ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : void 0; event.currentTarget...
Execution of a "direct" dispatch - there must be at most one dispatch accumulated on the event or it is considered an error. It doesn't really make sense for an event with multiple dispatches (bubbled) to keep track of the return values at each dispatch execution, but it does tend to make sense when dealing with "direc...
executeDirectDispatch
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function hasDispatches(event) { return !!event._dispatchListeners; }
@param {SyntheticEvent} event @return {boolean} True iff number of dispatches accumulated is greater than 0.
hasDispatches
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function restoreStateOfTarget(target) { // We perform this translation at the end of the event loop so that we // always receive the correct fiber here var internalInstance = EventPluginUtils_1.getInstanceFromNode(target); if (!internalInstance) { // Unmounted return; } if (typeof internalInstance.t...
General utilities that are useful in creating custom Event Plugins.
restoreStateOfTarget
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
stackBatchedUpdates = function (fn, a, b, c, d, e) { return fn(a, b, c, d, e); }
General utilities that are useful in creating custom Event Plugins.
stackBatchedUpdates
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
fiberBatchedUpdates = function (fn, bookkeeping) { return fn(bookkeeping); }
General utilities that are useful in creating custom Event Plugins.
fiberBatchedUpdates
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function performFiberBatchedUpdates(fn, bookkeeping) { // If we have Fiber loaded, we need to wrap this in a batching call so that // Fiber can apply its default priority for this call. return fiberBatchedUpdates(fn, bookkeeping); }
General utilities that are useful in creating custom Event Plugins.
performFiberBatchedUpdates
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function batchedUpdates(fn, bookkeeping) { // We first perform work with the stack batching strategy, by passing our // indirection to it. return stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping); }
General utilities that are useful in creating custom Event Plugins.
batchedUpdates
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function batchedUpdatesWithControlledComponents(fn, bookkeeping) { if (isNestingBatched) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. Therefore, we add the target to // a queue of work. return batchedUpdates(fn, bookkeeping); } ...
General utilities that are useful in creating custom Event Plugins.
batchedUpdatesWithControlledComponents
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getEventTarget(nativeEvent) { var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963 if (target.correspondingUseElement) { target = target.correspondingUseElement; } // Safari may fire events on text nodes (Node.TEXT_NODE is 3). // @se...
Gets the target node from a native browser event by accounting for inconsistencies in browser DOM APIs. @param {object} nativeEvent Native browser event. @return {DOMEventTarget} Target node.
getEventTarget
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function findRootContainerNode(inst) { // TODO: It may be a good idea to cache this to prevent unnecessary DOM // traversal, but caching is difficult to do correctly without using a // mutation observer to listen for all DOM changes. if (typeof inst.tag === 'number') { while (inst['return']) { inst = ...
Find the deepest React component completely containing the root of the passed-in instance (for use when entire React trees are nested within each other). If React trees are not nested, returns null.
findRootContainerNode
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) { if (callbackBookkeepingPool.length) { var instance = callbackBookkeepingPool.pop(); instance.topLevelType = topLevelType; instance.nativeEvent = nativeEvent; instance.targetInst = targetInst; return instance; } re...
Find the deepest React component completely containing the root of the passed-in instance (for use when entire React trees are nested within each other). If React trees are not nested, returns null.
getTopLevelCallbackBookKeeping
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function releaseTopLevelCallbackBookKeeping(instance) { instance.topLevelType = null; instance.nativeEvent = null; instance.targetInst = null; instance.ancestors.length = 0; if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) { callbackBookkeepingPool.push(instance); } }
Find the deepest React component completely containing the root of the passed-in instance (for use when entire React trees are nested within each other). If React trees are not nested, returns null.
releaseTopLevelCallbackBookKeeping
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function handleTopLevelImpl(bookKeeping) { var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components. // It's important that we build the array of ancestors before calling any // event handlers, because event handlers can modify the DOM, leading to // incon...
Find the deepest React component completely containing the root of the passed-in instance (for use when entire React trees are nested within each other). If React trees are not nested, returns null.
handleTopLevelImpl
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function accumulateInto(current, next) { !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0; if (current == null) { return next; } // Both are not empty. Warning: Never call x.concat(y) when you are not // certain that x is an Array (x co...
Accumulates items that must not be null or undefined into the first one. This is used to conserve memory by avoiding array allocations, and thus sacrifices API cleanness. Since `current` can be null before being passed in and not null after this function, make sure to assign it back to `current`: `a = accumulateInto(a...
accumulateInto
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function forEachAccumulated(arr, cb, scope) { if (Array.isArray(arr)) { arr.forEach(cb, scope); } else if (arr) { cb.call(scope, arr); } }
@param {array} arr an "accumulation" of items which is either an Array or a single item. Useful when paired with the `accumulate` module. This is a simple utility that allows us to reason about a collection of items, but handling the case when there is exactly one item (and we do not need to allocate an array). @param ...
forEachAccumulated
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
executeDispatchesAndRelease = function (event, simulated) { if (event) { EventPluginUtils_1.executeDispatchesInOrder(event, simulated); if (!event.isPersistent()) { event.constructor.release(event); } } }
Dispatches an event and releases it back into the pool, unless persistent. @param {?object} event Synthetic event to be dispatched. @param {boolean} simulated If the event is simulated (changes exn behavior) @private
executeDispatchesAndRelease
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
executeDispatchesAndReleaseSimulated = function (e) { return executeDispatchesAndRelease(e, true); }
Dispatches an event and releases it back into the pool, unless persistent. @param {?object} event Synthetic event to be dispatched. @param {boolean} simulated If the event is simulated (changes exn behavior) @private
executeDispatchesAndReleaseSimulated
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
executeDispatchesAndReleaseTopLevel = function (e) { return executeDispatchesAndRelease(e, false); }
Dispatches an event and releases it back into the pool, unless persistent. @param {?object} event Synthetic event to be dispatched. @param {boolean} simulated If the event is simulated (changes exn behavior) @private
executeDispatchesAndReleaseTopLevel
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function isInteractive(tag) { return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; }
Dispatches an event and releases it back into the pool, unless persistent. @param {?object} event Synthetic event to be dispatched. @param {boolean} simulated If the event is simulated (changes exn behavior) @private
isInteractive
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function shouldPreventMouseEvent(name, type, props) { switch (name) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case '...
Dispatches an event and releases it back into the pool, unless persistent. @param {?object} event Synthetic event to be dispatched. @param {boolean} simulated If the event is simulated (changes exn behavior) @private
shouldPreventMouseEvent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function runEventQueueInBatch(events) { EventPluginHub_1.enqueueEvents(events); EventPluginHub_1.processEventQueue(false); }
Dispatches all synthetic events on the event queue. @internal
runEventQueueInBatch
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function makePrefixMap(styleProp, eventName) { var prefixes = {}; prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); prefixes['Webkit' + styleProp] = 'webkit' + eventName; prefixes['Moz' + styleProp] = 'moz' + eventName; prefixes['ms' + styleProp] = 'MS' + eventName; prefixes['O' + styleProp] = '...
Generate a mapping of standard vendor prefixes using the defined style property and event name. @param {string} styleProp @param {string} eventName @returns {object}
makePrefixMap
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getVendorPrefixedEventName(eventName) { if (prefixedEventNames[eventName]) { return prefixedEventNames[eventName]; } else if (!vendorPrefixes[eventName]) { return eventName; } var prefixMap = vendorPrefixes[eventName]; for (var styleProp in prefixMap) { if (prefixMap.hasOwnProperty(styl...
Attempts to determine the correct vendor prefixed event name. @param {string} eventName @returns {string}
getVendorPrefixedEventName
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getListeningForDocument(mountAt) { // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty` // directly. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) { mountAt[topListenersIDKey] = reactTopListenersCounter++; alreadyListeningTo[mountAt[topListenersIDKey]] ...
To ensure no conflicts with other potential React instances on the page
getListeningForDocument
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function prefixKey(prefix, key) { return prefix + key.charAt(0).toUpperCase() + key.substring(1); }
@param {string} prefix vendor-specific prefix, eg: Webkit @param {string} key style name, eg: transitionDuration @return {string} style name prefixed with `prefix`, properly camelCased, eg: WebkitTransitionDuration
prefixKey
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function dangerousStyleValue(name, value, isCustomProperty) { // Note that we've removed escapeTextForBrowser() calls here since the // whole string will be escaped when the attribute is injected into // the markup. If you provide unsafe user data here they can inject // arbitrary CSS which may be problematic (...
Convert a value into the proper css writable value. The style name `name` should be logical (no hyphens), as specified in `CSSProperty.isUnitlessNumber`. @param {string} name CSS property name such as `topMargin`. @param {*} value CSS property value such as `10px`. @return {string} Normalized style value with dimensio...
dangerousStyleValue
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
warnInvalidSetState = function () { warning$7(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()'); }
Sets the value for multiple styles on a node. If a value is specified as '' (empty string), the corresponding style property will be unset. @param {DOMElement} node @param {object} styles @param {ReactDOMComponent} component
warnInvalidSetState
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function isControlled(props) { var usesChecked = props.type === 'checkbox' || props.type === 'radio'; return usesChecked ? props.checked != null : props.value != null; }
Provide a linked `value` attribute for controlled forms. You should not use this outside of the ReactDOM controlled form components.
isControlled
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateNamedCousins(rootNode, props) { var name = props.name; if (props.type === 'radio' && name != null) { var queryRoot = rootNode; while (queryRoot.parentNode) { queryRoot = queryRoot.parentNode; } // If `rootNode.form` was non-null, then we could try `form.elements`, // but t...
Implements an <input> host component that allows setting these optional props: `checked`, `value`, `defaultChecked`, and `defaultValue`. If `checked` or `value` are not supplied (or null/undefined), user actions that affect the checked state or value will trigger updates to the element. If they are supplied (and not ...
updateNamedCousins
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function flattenChildren(children) { var content = ''; // Flatten children and warn if they aren't strings or numbers; // invalid types are ignored. // We can silently skip them because invalid DOM nesting warning // catches these cases in Fiber. react.Children.forEach(children, function (child) { if (...
Implements an <input> host component that allows setting these optional props: `checked`, `value`, `defaultChecked`, and `defaultValue`. If `checked` or `value` are not supplied (or null/undefined), user actions that affect the checked state or value will trigger updates to the element. If they are supplied (and not ...
flattenChildren
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getDeclarationErrorAddendum() { var ownerName = getCurrentFiberOwnerName$4(); if (ownerName) { return '\n\nCheck the render method of `' + ownerName + '`.'; } return ''; }
Implements an <option> host component that warns when `selected` is set.
getDeclarationErrorAddendum
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function checkSelectPropTypes(props) { ReactControlledValuePropTypes_1.checkPropTypes('select', props, getCurrentFiberStackAddendum$3); for (var i = 0; i < valuePropNames.length; i++) { var propName = valuePropNames[i]; if (props[propName] == null) { continue; } var isArray = Array.isArray(pr...
Validation function for `value` and `defaultValue`.
checkSelectPropTypes
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateOptions(node, multiple, propValue) { var options = node.options; if (multiple) { var selectedValues = propValue; var selectedValue = {}; for (var i = 0; i < selectedValues.length; i++) { // Prefix to avoid chaos with special keys. selectedValue['$' + selectedValues[i]] = true...
Validation function for `value` and `defaultValue`.
updateOptions
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
createMicrosoftUnsafeLocalFunction = function (func) { if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { return function (arg0, arg1, arg2, arg3) { MSApp.execUnsafeLocalFunction(function () { return func(arg0, arg1, arg2, arg3); }); }; } else { return func; } }
Create a function which has 'unsafe' privileges (required by windows8 apps)
createMicrosoftUnsafeLocalFunction
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function escapeHtml(string) { var str = '' + string; var match = matchHtmlRegExp.exec(str); if (!match) { return str; } var escape; var html = ''; var index = 0; var lastIndex = 0; for (index = match.index; index < str.length; index++) { switch (str.charCodeAt(index)) { case 34: ...
Escape special characters in the given string of html. @param {string} string The string to escape for inserting into HTML @return {string} @public
escapeHtml
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function escapeTextContentForBrowser(text) { if (typeof text === 'boolean' || typeof text === 'number') { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often // for numeric dom ids. return '' + text; } retu...
Escapes text to prevent scripting attacks. @param {*} text Text value to escape. @return {string} An escaped string.
escapeTextContentForBrowser
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
setTextContent = function (node, text) { if (text) { var firstChild = node.firstChild; if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE$2) { firstChild.nodeValue = text; return; } } node.textContent = text; }
Set the textContent property of a node, ensuring that whitespace is preserved even in IE8. innerText is a poor substitute for textContent and, among many issues, inserts <br> instead of the literal newline chars. innerHTML behaves as it should. @param {DOMElement} node @param {string} text @internal
setTextContent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
isCoroutine = function (object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_COROUTINE_TYPE$1; }
Verifies the object is a coroutine object.
isCoroutine
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
isYield = function (object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_YIELD_TYPE$1; }
Verifies the object is a yield object.
isYield
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
isPortal = function (object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_PORTAL_TYPE$1; }
Verifies the object is a portal object.
isPortal
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
warnForMissingKey = function (child) { if (child === null || typeof child !== 'object') { return; } if (!child._store || child._store.validated || child.key != null) { return; } !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _st...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
warnForMissingKey
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function getIteratorFn(maybeIterable) { if (maybeIterable === null || typeof maybeIterable === 'undefined') { return null; } var iteratorFn = ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; if (typeof iteratorFn === 'function') { return iteratorFn; } return ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
getIteratorFn
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function coerceRef(current, element) { var mixedRef = element.ref; if (mixedRef !== null && typeof mixedRef !== 'function') { if (element._owner) { var owner = element._owner; var inst = void 0; if (owner) { if (typeof owner.tag === 'number') { var ownerFiber = owner; ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
coerceRef
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
ref = function (value) { var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; if (value === null) { delete refs[stringRef]; } else { refs[stringRef] = value; } }
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
ref
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function throwOnInvalidObjectType(returnFiber, newChild) { if (returnFiber.type !== 'textarea') { var addendum = ''; { addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + (getCurrentFiberStackAddendum$5() || ''); } invariant(false, 'Objects are not valid a...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
throwOnInvalidObjectType
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function warnOnFunctionType() { warning$24(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.%s', getCurrentFiberStackAddendum$5() || ''); }
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
warnOnFunctionType
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function deleteChild(returnFiber, childToDelete) { if (!shouldTrackSideEffects) { // Noop. return; } if (!shouldClone) { // When we're reconciling in place we have a work in progress copy. We // actually want the current copy. If there is no current copy, then we // don't need ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
deleteChild
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function deleteRemainingChildren(returnFiber, currentFirstChild) { if (!shouldTrackSideEffects) { // Noop. return null; } // TODO: For the shouldClone case, this could be micro-optimized a bit by // assuming that after the first child we've already added everything. var childToDelete = ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
deleteRemainingChildren
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function mapRemainingChildren(returnFiber, currentFirstChild) { // Add the remaining children to a temporary map so that we can find them by // keys quickly. Implicit (null) keys get added to this set with their index var existingChildren = new Map(); var existingChild = currentFirstChild; while (e...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
mapRemainingChildren
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function useFiber(fiber, priority) { // We currently set sibling to null and index to 0 here because it is easy // to forget to do before returning it. E.g. for the single child case. if (shouldClone) { var clone = createWorkInProgress$2(fiber, priority); clone.index = 0; clone.sibling = n...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
useFiber
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function placeChild(newFiber, lastPlacedIndex, newIndex) { newFiber.index = newIndex; if (!shouldTrackSideEffects) { // Noop. return lastPlacedIndex; } var current = newFiber.alternate; if (current !== null) { var oldIndex = current.index; if (oldIndex < lastPlacedIndex) { ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
placeChild
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function placeSingleChild(newFiber) { // This is simpler for the single child case. We only need to do a // placement for inserting new children. if (shouldTrackSideEffects && newFiber.alternate === null) { newFiber.effectTag = Placement$3; } return newFiber; }
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
placeSingleChild
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateTextNode(returnFiber, current, textContent, priority) { if (current === null || current.tag !== HostText$5) { // Insert var created = createFiberFromText$1(textContent, returnFiber.internalContextTag, priority); created['return'] = returnFiber; return created; } else { ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateTextNode
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateElement(returnFiber, current, element, priority) { if (current === null || current.type !== element.type) { // Insert var created = createFiberFromElement$1(element, returnFiber.internalContextTag, priority); created.ref = coerceRef(current, element); created['return'] = retur...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateElement
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateCoroutine(returnFiber, current, coroutine, priority) { // TODO: Should this also compare handler to determine whether to reuse? if (current === null || current.tag !== CoroutineComponent$2) { // Insert var created = createFiberFromCoroutine$1(coroutine, returnFiber.internalContextTag,...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateCoroutine
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateYield(returnFiber, current, yieldNode, priority) { if (current === null || current.tag !== YieldComponent$3) { // Insert var created = createFiberFromYield$1(yieldNode, returnFiber.internalContextTag, priority); created.type = yieldNode.value; created['return'] = returnFiber; ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateYield
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updatePortal(returnFiber, current, portal, priority) { if (current === null || current.tag !== HostPortal$5 || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { // Insert var created = createFiberFromPortal$1(portal, return...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updatePortal
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateFragment(returnFiber, current, fragment, priority) { if (current === null || current.tag !== Fragment$3) { // Insert var created = createFiberFromFragment$1(fragment, returnFiber.internalContextTag, priority); created['return'] = returnFiber; return created; } else { ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateFragment
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function createChild(returnFiber, newChild, priority) { if (typeof newChild === 'string' || typeof newChild === 'number') { // Text nodes doesn't have keys. If the previous node is implicitly keyed // we can continue to replace it without aborting even if it is not a text // node. var create...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
createChild
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateSlot(returnFiber, oldFiber, newChild, priority) { // Update the fiber if the keys match, otherwise return null. var key = oldFiber !== null ? oldFiber.key : null; if (typeof newChild === 'string' || typeof newChild === 'number') { // Text nodes doesn't have keys. If the previous node ...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateSlot
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateFromMap(existingChildren, returnFiber, newIdx, newChild, priority) { if (typeof newChild === 'string' || typeof newChild === 'number') { // Text nodes doesn't have keys, so we neither have to check the old nor // new node for the key. If both are text nodes, they match. var matchedF...
Warn if there's no key explicitly set on dynamic arrays of children or object keys are not valid. This allows us to keep track of children between updates.
updateFromMap
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, priority) { // This algorithm can't optimize by searching from boths ends since we // don't have backpointers on fibers. I'm trying to see how far we can get // with that model. If it ends up not being worth the tradeoffs, we can ...
Warns if there is a duplicate or missing key
reconcileChildrenArray
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, priority) { // This is the same implementation as reconcileChildrenArray(), // but using the iterator instead. var iteratorFn = getIteratorFn(newChildrenIterable); !(typeof iteratorFn === 'function') ? invariant(fal...
Warns if there is a duplicate or missing key
reconcileChildrenIterator
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, priority) { // There's no need to check for keys on text nodes since we don't have a // way to define them. if (currentFirstChild !== null && currentFirstChild.tag === HostText$5) { // We already have an existing node so let...
Warns if there is a duplicate or missing key
reconcileSingleTextNode
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileSingleElement(returnFiber, currentFirstChild, element, priority) { var key = element.key; var child = currentFirstChild; while (child !== null) { // TODO: If key === null and child.key === null, then this only applies to // the first item in the list. if (child.key === ke...
Warns if there is a duplicate or missing key
reconcileSingleElement
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileSingleCoroutine(returnFiber, currentFirstChild, coroutine, priority) { var key = coroutine.key; var child = currentFirstChild; while (child !== null) { // TODO: If key === null and child.key === null, then this only applies to // the first item in the list. if (child.key ...
Warns if there is a duplicate or missing key
reconcileSingleCoroutine
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileSingleYield(returnFiber, currentFirstChild, yieldNode, priority) { // There's no need to check for keys on yields since they're stateless. var child = currentFirstChild; if (child !== null) { if (child.tag === YieldComponent$3) { deleteRemainingChildren(returnFiber, child.sib...
Warns if there is a duplicate or missing key
reconcileSingleYield
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileSinglePortal(returnFiber, currentFirstChild, portal, priority) { var key = portal.key; var child = currentFirstChild; while (child !== null) { // TODO: If key === null and child.key === null, then this only applies to // the first item in the list. if (child.key === key) ...
Warns if there is a duplicate or missing key
reconcileSinglePortal
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileChildFibers(returnFiber, currentFirstChild, newChild, priority) { // This function is not recursive. // If the top level item is an array, we treat it as a set of children, // not as a fragment. Nested arrays on the other hand will be treated as // fragment nodes. Recursion happens at ...
Warns if there is a duplicate or missing key
reconcileChildFibers
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
cloneChildFibers$1 = function (current, workInProgress) { !(current === null || workInProgress.child === current.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0; if (workInProgress.child === null) { return; } var currentChild = workInProgress.child; var newChild = createWorkInPr...
Warns if there is a duplicate or missing key
cloneChildFibers$1
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
warnOnInvalidCallback = function (callback, callerName) { warning$25(callback === null || typeof callback === 'function', '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback); }
Warns if there is a duplicate or missing key
warnOnInvalidCallback
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
ReactFiberClassComponent = function (scheduleUpdate, getPriorityContext, memoizeProps, memoizeState) { // Class component state updater var updater = { isMounted: isMounted$1, enqueueSetState: function (instance, partialState, callback) { var fiber = ReactInstanceMap_1.get(instance); var priorit...
Warns if there is a duplicate or missing key
ReactFiberClassComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { if (oldProps === null || workInProgress.updateQueue !== null && workInProgress.updateQueue.hasForceUpdate) { // If the workInProgress already has an Update effect, return true return true; } ...
Warns if there is a duplicate or missing key
checkShouldComponentUpdate
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function checkClassInstance(workInProgress) { var instance = workInProgress.stateNode; var type = workInProgress.type; { var name = getComponentName_1(workInProgress); var renderPresent = instance.render; warning$25(renderPresent, '%s(...): No `render` method found on the returned componen...
Warns if there is a duplicate or missing key
checkClassInstance
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function resetInputPointers(workInProgress, instance) { instance.props = workInProgress.memoizedProps; instance.state = workInProgress.memoizedState; }
Warns if there is a duplicate or missing key
resetInputPointers
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function adoptClassInstance(workInProgress, instance) { instance.updater = updater; workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates ReactInstanceMap_1.set(instance, workInProgress); { instance._reactInternalInstance = fakeInternalI...
Warns if there is a duplicate or missing key
adoptClassInstance
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function constructClassInstance(workInProgress, props) { var ctor = workInProgress.type; var unmaskedContext = getUnmaskedContext$2(workInProgress); var needsContext = isContextConsumer$1(workInProgress); var context = needsContext ? getMaskedContext$2(workInProgress, unmaskedContext) : emptyObject; ...
Warns if there is a duplicate or missing key
constructClassInstance
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function callComponentWillMount(workInProgress, instance) { { startPhaseTimer$1(workInProgress, 'componentWillMount'); } var oldState = instance.state; instance.componentWillMount(); { stopPhaseTimer$1(); } if (oldState !== instance.state) { { warning$25(false, '%s...
Warns if there is a duplicate or missing key
callComponentWillMount
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { { startPhaseTimer$1(workInProgress, 'componentWillReceiveProps'); } var oldState = instance.state; instance.componentWillReceiveProps(newProps, newContext); { stopPhaseTimer$1(); } if (insta...
Warns if there is a duplicate or missing key
callComponentWillReceiveProps
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function mountClassInstance(workInProgress, priorityLevel) { var current = workInProgress.alternate; { checkClassInstance(workInProgress); } var instance = workInProgress.stateNode; var state = instance.state || null; var props = workInProgress.pendingProps; !props ? invariant(false...
Warns if there is a duplicate or missing key
mountClassInstance
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateClassInstance(current, workInProgress, priorityLevel) { var instance = workInProgress.stateNode; resetInputPointers(workInProgress, instance); var oldProps = workInProgress.memoizedProps; var newProps = workInProgress.pendingProps; if (!newProps) { // If there aren't any new pr...
Warns if there is a duplicate or missing key
updateClassInstance
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileChildren(current, workInProgress, nextChildren) { var priorityLevel = workInProgress.pendingWorkPriority; reconcileChildrenAtPriority(current, workInProgress, nextChildren, priorityLevel); }
Warns if there is a duplicate or missing key
reconcileChildren
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function reconcileChildrenAtPriority(current, workInProgress, nextChildren, priorityLevel) { if (current === null) { // If this is a fresh new component that hasn't been rendered yet, we // won't update its child set by applying minimal side-effects. Instead, // we will add them all to the child b...
Warns if there is a duplicate or missing key
reconcileChildrenAtPriority
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateFragment(current, workInProgress) { var nextChildren = workInProgress.pendingProps; if (hasContextChanged$1()) { // Normally we can bail out on props equality but if context has changed // we don't do the bailout and we have to reuse existing props instead. if (nextChildren === ...
Warns if there is a duplicate or missing key
updateFragment
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function markRef(current, workInProgress) { var ref = workInProgress.ref; if (ref !== null && (!current || current.ref !== ref)) { // Schedule a Ref effect workInProgress.effectTag |= Ref$1; } }
Warns if there is a duplicate or missing key
markRef
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateFunctionalComponent(current, workInProgress) { var fn = workInProgress.type; var nextProps = workInProgress.pendingProps; var memoizedProps = workInProgress.memoizedProps; if (hasContextChanged$1()) { // Normally we can bail out on props equality but if context has changed //...
Warns if there is a duplicate or missing key
updateFunctionalComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateClassComponent(current, workInProgress, priorityLevel) { // Push context providers early to prevent context stack mismatches. // During mounting we don't know the child context yet as the instance doesn't exist. // We will invalidate the child context in finishClassComponent() right after ren...
Warns if there is a duplicate or missing key
updateClassComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function finishClassComponent(current, workInProgress, shouldUpdate, hasContext) { // Refs should update even if shouldComponentUpdate returns false markRef(current, workInProgress); if (!shouldUpdate) { // Context providers should defer to sCU for rendering if (hasContext) { invalidate...
Warns if there is a duplicate or missing key
finishClassComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function pushHostRootContext(workInProgress) { var root = workInProgress.stateNode; if (root.pendingContext) { pushTopLevelContextObject$1(workInProgress, root.pendingContext, root.pendingContext !== root.context); } else if (root.context) { // Should always be set pushTopLevelContextObjec...
Warns if there is a duplicate or missing key
pushHostRootContext
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateHostRoot(current, workInProgress, priorityLevel) { pushHostRootContext(workInProgress); var updateQueue = workInProgress.updateQueue; if (updateQueue !== null) { var prevState = workInProgress.memoizedState; var state = beginUpdateQueue$1(current, workInProgress, updateQueue, null...
Warns if there is a duplicate or missing key
updateHostRoot
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateHostComponent(current, workInProgress, renderPriority) { pushHostContext(workInProgress); if (current === null) { tryToClaimNextHydratableInstance(workInProgress); } var type = workInProgress.type; var memoizedProps = workInProgress.memoizedProps; var nextProps = workInPro...
Warns if there is a duplicate or missing key
updateHostComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateHostText(current, workInProgress) { if (current === null) { tryToClaimNextHydratableInstance(workInProgress); } var nextProps = workInProgress.pendingProps; if (nextProps === null) { nextProps = workInProgress.memoizedProps; } memoizeProps(workInProgress, nextProps); ...
Warns if there is a duplicate or missing key
updateHostText
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function mountIndeterminateComponent(current, workInProgress, priorityLevel) { !(current === null) ? invariant(false, 'An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.') : void 0; var fn = workInProgress.type; var props = workInProgre...
Warns if there is a duplicate or missing key
mountIndeterminateComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updateCoroutineComponent(current, workInProgress) { var nextCoroutine = workInProgress.pendingProps; if (hasContextChanged$1()) { // Normally we can bail out on props equality but if context has changed // we don't do the bailout and we have to reuse existing props instead. if (nextCo...
Warns if there is a duplicate or missing key
updateCoroutineComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function updatePortalComponent(current, workInProgress) { pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); var priorityLevel = workInProgress.pendingWorkPriority; var nextChildren = workInProgress.pendingProps; if (hasContextChanged$1()) { // Normally we can bail out on p...
Warns if there is a duplicate or missing key
updatePortalComponent
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function bailoutOnAlreadyFinishedWork(current, workInProgress) { { cancelWorkTimer(workInProgress); } // TODO: We should ideally be able to bail out early if the children have no // more work to do. However, since we don't have a separation of this // Fiber's priority and its children yet - w...
Warns if there is a duplicate or missing key
bailoutOnAlreadyFinishedWork
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT
function bailoutOnLowPriority(current, workInProgress) { { cancelWorkTimer(workInProgress); } // TODO: Handle HostComponent tags here as well and call pushHostContext()? // See PR 8590 discussion for context switch (workInProgress.tag) { case HostRoot$7: pushHostRootContext(work...
Warns if there is a duplicate or missing key
bailoutOnLowPriority
javascript
agermanidis/livepython
dist/variable_inspector.js
https://github.com/agermanidis/livepython/blob/master/dist/variable_inspector.js
MIT