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 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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.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/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function memoizeProps(workInProgress, nextProps) { workInProgress.memoizedProps = nextProps; }
Warns if there is a duplicate or missing key
memoizeProps
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function memoizeState(workInProgress, nextState) { workInProgress.memoizedState = nextState; // Don't reset the updateQueue, in case there are pending updates. Resetting // is handled by beginUpdateQueue. }
Warns if there is a duplicate or missing key
memoizeState
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function beginWork(current, workInProgress, priorityLevel) { if (workInProgress.pendingWorkPriority === NoWork$3 || workInProgress.pendingWorkPriority > priorityLevel) { return bailoutOnLowPriority(current, workInProgress); } { ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress, null); ...
Warns if there is a duplicate or missing key
beginWork
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
ReactFiberCompleteWork = function (config, hostContext, hydrationContext) { var createInstance = config.createInstance, createTextInstance = config.createTextInstance, appendInitialChild = config.appendInitialChild, finalizeInitialChildren = config.finalizeInitialChildren, prepareUpdate = conf...
Warns if there is a duplicate or missing key
ReactFiberCompleteWork
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function markUpdate(workInProgress) { // Tag the fiber with an update effect. This turns a Placement into // an UpdateAndPlacement. workInProgress.effectTag |= Update$2; }
Warns if there is a duplicate or missing key
markUpdate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function markRef(workInProgress) { workInProgress.effectTag |= Ref$2; }
Warns if there is a duplicate or missing key
markRef
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function appendAllYields(yields, workInProgress) { var node = workInProgress.stateNode; if (node) { node['return'] = workInProgress; } while (node !== null) { if (node.tag === HostComponent$8 || node.tag === HostText$6 || node.tag === HostPortal$6) { invariant(false, 'A coroutine can...
Warns if there is a duplicate or missing key
appendAllYields
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function moveCoroutineToHandlerPhase(current, workInProgress) { var coroutine = workInProgress.memoizedProps; !coroutine ? invariant(false, 'Should be resolved by now. This error is likely caused by a bug in React. Please file an issue.') : void 0; // First step of the coroutine has completed. Now we need ...
Warns if there is a duplicate or missing key
moveCoroutineToHandlerPhase
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function appendAllChildren(parent, workInProgress) { // We only have the top Fiber that was created but we need recurse down its // children to find all the terminal nodes. var node = workInProgress.child; while (node !== null) { if (node.tag === HostComponent$8 || node.tag === HostText$6) { ...
Warns if there is a duplicate or missing key
appendAllChildren
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function completeWork(current, workInProgress, renderPriority) { { ReactDebugCurrentFiber$5.setCurrentFiber(workInProgress, null); } // Get the latest props. var newProps = workInProgress.pendingProps; if (newProps === null) { newProps = workInProgress.memoizedProps; } else if (work...
Warns if there is a duplicate or missing key
completeWork
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function catchErrors(fn) { return function (arg) { try { return fn(arg); } catch (err) { if (true && !hasLoggedError) { hasLoggedError = true; warning$26(false, 'React DevTools encountered an error: %s', err); } } }; }
Warns if there is a duplicate or missing key
catchErrors
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function injectInternals$1(internals) { if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { // No DevTools return false; } var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!hook.supportsFiber) { { warning$26(false, 'The installed version of React DevTools is too old and will not work ' ...
Warns if there is a duplicate or missing key
injectInternals$1
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function onCommitRoot$1(root) { if (typeof onCommitFiberRoot === 'function') { onCommitFiberRoot(root); } }
Warns if there is a duplicate or missing key
onCommitRoot$1
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function onCommitUnmount$1(fiber) { if (typeof onCommitFiberUnmount === 'function') { onCommitFiberUnmount(fiber); } }
Warns if there is a duplicate or missing key
onCommitUnmount$1
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
ReactFiberCommitWork = function (config, captureError) { var commitMount = config.commitMount, commitUpdate = config.commitUpdate, resetTextContent = config.resetTextContent, commitTextUpdate = config.commitTextUpdate, appendChild = config.appendChild, appendChildToContainer = config.app...
Warns if there is a duplicate or missing key
ReactFiberCommitWork
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
callComponentWillUnmountWithTimerInDev = function (current, instance) { startPhaseTimer$2(current, 'componentWillUnmount'); instance.props = current.memoizedProps; instance.state = current.memoizedState; instance.componentWillUnmount(); stopPhaseTimer$2(); }
Warns if there is a duplicate or missing key
callComponentWillUnmountWithTimerInDev
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function safelyCallComponentWillUnmount(current, instance) { { invokeGuardedCallback$2(null, callComponentWillUnmountWithTimerInDev, null, current, instance); if (hasCaughtError$1()) { var unmountError = clearCaughtError$1(); captureError(current, unmountError); } } }
Warns if there is a duplicate or missing key
safelyCallComponentWillUnmount
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function safelyDetachRef(current) { var ref = current.ref; if (ref !== null) { { invokeGuardedCallback$2(null, ref, null, null); if (hasCaughtError$1()) { var refError = clearCaughtError$1(); captureError(current, refError); } } } }
Warns if there is a duplicate or missing key
safelyDetachRef
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getHostParentFiber(fiber) { var parent = fiber['return']; while (parent !== null) { if (isHostParent(parent)) { return parent; } parent = parent['return']; } invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an...
Warns if there is a duplicate or missing key
getHostParentFiber
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function isHostParent(fiber) { return fiber.tag === HostComponent$9 || fiber.tag === HostRoot$9 || fiber.tag === HostPortal$7; }
Warns if there is a duplicate or missing key
isHostParent
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getHostSibling(fiber) { // We're going to search forward into the tree until we find a sibling host // node. Unfortunately, if multiple insertions are done in a row we have to // search past them. This leads to exponential search for the next sibling. var node = fiber; siblings: while (true...
Warns if there is a duplicate or missing key
getHostSibling
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitPlacement(finishedWork) { // Recursively insert all host nodes into the parent. var parentFiber = getHostParentFiber(finishedWork); var parent = void 0; var isContainer = void 0; switch (parentFiber.tag) { case HostComponent$9: parent = parentFiber.stateNode; isC...
Warns if there is a duplicate or missing key
commitPlacement
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitNestedUnmounts(root) { // While we're inside a removed host node we don't want to call // removeChild on the inner nodes because they're removed by the top // call anyway. We also want to call componentWillUnmount on all // composites before this host node is removed from the tree. Theref...
Warns if there is a duplicate or missing key
commitNestedUnmounts
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function unmountHostComponents(current) { // We only have the top Fiber that was inserted but we need recurse down its var node = current; // Each iteration, currentParent is populated with node's host parent if not // currentParentIsValid. var currentParentIsValid = false; var currentParent = ...
Warns if there is a duplicate or missing key
unmountHostComponents
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitDeletion(current) { // Recursively delete all host nodes from the parent. // Detach refs and call componentWillUnmount() on the whole subtree. unmountHostComponents(current); // Cut off the return pointers to disconnect it from the tree. Ideally, we // should clear the child pointer ...
Warns if there is a duplicate or missing key
commitDeletion
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitUnmount(current) { if (typeof onCommitUnmount === 'function') { onCommitUnmount(current); } switch (current.tag) { case ClassComponent$9: { safelyDetachRef(current); var instance = current.stateNode; if (typeof instance.componentWillUnmount =...
Warns if there is a duplicate or missing key
commitUnmount
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitWork(current, finishedWork) { switch (finishedWork.tag) { case ClassComponent$9: { return; } case HostComponent$9: { var instance = finishedWork.stateNode; if (instance != null) { // Commit the work prepared earlier. ...
Warns if there is a duplicate or missing key
commitWork
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitLifeCycles(current, finishedWork) { switch (finishedWork.tag) { case ClassComponent$9: { var instance = finishedWork.stateNode; if (finishedWork.effectTag & Update$3) { if (current === null) { { startPhaseTimer$2(finishedWork...
Warns if there is a duplicate or missing key
commitLifeCycles
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitAttachRef(finishedWork) { var ref = finishedWork.ref; if (ref !== null) { var instance = finishedWork.stateNode; switch (finishedWork.tag) { case HostComponent$9: ref(getPublicInstance(instance)); break; default: ref(instance); } ...
Warns if there is a duplicate or missing key
commitAttachRef
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function commitDetachRef(current) { var currentRef = current.ref; if (currentRef !== null) { currentRef(null); } }
Warns if there is a duplicate or missing key
commitDetachRef
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
ReactFiberHostContext = function (config) { var getChildHostContext = config.getChildHostContext, getRootHostContext = config.getRootHostContext; var contextStackCursor = createCursor$2(NO_CONTEXT); var contextFiberStackCursor = createCursor$2(NO_CONTEXT); var rootInstanceStackCursor = createCursor$2(NO...
Warns if there is a duplicate or missing key
ReactFiberHostContext
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function requiredContext(c) { !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0; return c; }
Warns if there is a duplicate or missing key
requiredContext
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getRootHostContainer() { var rootInstance = requiredContext(rootInstanceStackCursor.current); return rootInstance; }
Warns if there is a duplicate or missing key
getRootHostContainer
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT