Summary: 442 instances, 241 unique Text Count // TODO: Defer siblings if we're not at the right index for this slot. 4 // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects. 2 // TODO: Include link to relevant documentation page. 2 // TODO: Because there is no cross-renderer API for batching updates, it's 1 // TODO: if it was but can no longer be simple, 2 // TODO: We have several of these arguments that are conceptually part of the 2 // FIXME: Slipped past code review. This is not a safe mutation: 2 // TODO: Optimize this to use the OffscreenComponent fiber instead of 2 {name: 'results', tagName: 'input', read: getAttribute('results')}, // TODO: Should use property but it's not supported in Chrome. 1 // TODO: Don't need to accumulate this. Instead, we can remove renderLanes 2 // TODO: This is a temporary solution that allowed us to transition away 4 // TODO: Not sure if this is the desired semantics, but it's what we 2 // TODO: Experiencing an error where oldProps is null. Suggests a host 2 // TODO: Allow customizing recorded events 2 // TODO: Move the reset at in beginWork out of the common path so that 2 // TODO: This gets called every time we yield. We can optimize by storing 2 // TODO: Add "unstable_" prefix? 2 // TODO: __VARIANT__ isn't supported for React Native flags yet. You can set the 1 {name: 'on-unknownevent'}, // TODO: Check for event subscriptions 1 // TODO: This will still suspend a synchronous tree if anything 2 // TODO: Remove `callback` when we delete legacy mode. 2 // TODO: This is left over from the effect list implementation, where we had 2 // When we next publish a release, update the matching TODO in backend/renderer.js 1 // TODO: The location of the retry loop is a bit weird. We should 1 // TODO: also add an import? 1 // TODO: popHydrationState 2 // TODO: FIXME! Without this implemented properly, the JIT 1 // TODO: Split the update API as separate for the props vs. children. 2 // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead. 2 // TODO: Clean this up once we turn on the string ref warning for 2 // TODO: add a more generic warning for invalid values. 1 // TODO This time should be the time at which the server rendered response that is 2 {name: 'onUnknownEvent'}, // TODO: Check for event subscriptions 1 // TODO: Type the updateQueue to be specific to host components. 2 // TODO (Offscreen) Also check: subtreeFlags & LayoutMask 2 // TODO: Can this have a suggestion? 1 // TODO: If the module is not in the version map, we should exclude it 1 // TODO: Router component? 2 * properties which is confusing. TODO: Expose pendingState or don't use it 1 // TODO (bvaughn) Replace this behavior with an invariant() in the future. 2 // TODO: Consider warning in this path if a fallback timer is not scheduled. 2 // TODO: Because we don't have a work-in-progress, this will add the 2 // TODO: We can move this to the passive phase once we add a pre-commit 2 // TODO: this is too permissive. 1 FIXME: false, 1 * TODO: Test that a single child and an array with one item have the same key 1 // TODO: This would be way simpler if 1) we required a promise to be 1 // TODO: We only check `didTimeout` defensively, to account for a Scheduler 2 {name: 'inputMode', tagName: 'input', read: getAttribute('inputmode')}, // TODO: Should use property but it's not implemented in Chrome 1 // TODO: These flags are hard-coded to the default values used in open source. 1 // TODO: I found and added this missing line while investigating a 2 // TODO: Warn in strict mode if getDerivedStateFromError is 2 // TODO: Is this necessary anymore? The only user code that runs in this 2 // TODO: Move to commitPassiveMountEffects 4 // TODO: If we move the `hadNoMutationsEffects` call after `bubbleProperties` 2 // TODO: re-enable when we no longer compare to 15. 1 // TODO: In some cases, we'll end up checking if context has changed twice, 2 // TODO: Type this specific to this type of component. 2 // TODO: Does Cache work in legacy mode? Should decide and write a test. 2 // TODO: Move this to FiberRoot constructor 2 // TODO: use this for invalidation. 1 // TODO: It's possible that even a concurrent render may never have yielded 2 // TODO: Temporary until we confirm this warning is not fired. 2 // TODO: Might be better if `flushPassiveEffects` did not automatically 2 // TODO: Consolidate with `isInterleavedUpdate` check 2 // TODO: Don't need to reset the flags here, because they're reset in the 2 // TODO This way of resetting the error boundary state is a hack. 2 // TODO: Remove array spread from the source. Prefer .apply instead. 1 // TODO: Should we we lint them? 1 // TODO: Finish rolling out in www 2 // TODO: Consider calling `unwindWork` to pop the contexts. 2 // TODO: revisit this when we implement resuming. 4 {name: 'on-click'}, // TODO: Check for event subscriptions 1 // TODO: Move out of the loop. This only happens for the first run. 4 // TODO: Type this specific to this type of component. 2 // TODO: When we delete legacy mode, we should make this error argument 2 // TODO: we could potentially ignore early returns. 1 // TODO: Probably should inline this back 2 // TODO: This function is supposed to be non-recursive. 2 read: getAttribute('is'), // TODO: This could check if this is an extended custom element but this is a controversial spec. 1 // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we 2 // TODO: Once we add back resuming, we should check if the children are 2 // TODO: Should we lint them? 1 // TODO (Offscreen) Check: flags & LayoutStatic 2 // TODO (Offscreen) Check: flags & RefStatic 2 // TODO: Find a more efficient way to do this. 2 // TODO: Is the JND optimization worth the added complexity? If this is 2 {name: 'list', read: getAttribute('list')}, // TODO: This should match the ID of a datalist element and then read property. 1 // TODO: Let's not support non-async scopes at all in our tests. Need to 1 // TODO: don't ignore level and pass it down somewhere too. 1 {name: 'onclick'}, // TODO: Check for event subscriptions 1 // TODO: Consider warning if the refresh is at discrete priority, or if we 2 // TODO: Fix tests to not use ReactDOM.render or gate them. Then we can remove this. 1 // TODO: This no longer makes any sense. We already wrap the mutation and 2 // TODO: Maybe there's a better way to report this. 2 // TODO: Probably should refactor `beginWork` to split the bailout 2 // FIXME: New build script does not output build-info.json. It's only used 1 // TODO: These configs are separate but should be rolled into the configs above 1 // TODO: Replace with asset reference. 4 // TODO: useTransition hook instead. 1 // TODO (Offscreen) Check: subtreeFlags & LayoutStatic 4 // TODO: We use `childLanes` as a heuristic for whether there is 2 // TODO: This module is used both by the release scripts and to expose a version 1 // TODO: This assumes that we're about to evaluate the component and process 2 // TODO: this doesn't make sense for an ESLint rule. 1 // TODO: Special case idle priority? 2 // TODO: Temporary field. Will remove this by storing a map of 2 // TODO: Move this to passive phase 2 // TODO: Warn in a future release. 2 // TODO: Restructure so we never read values from the instance. 2 // TODO: For the shouldClone case, this could be micro-optimized a bit by 2 // TODO: We can probably just avoid popping it instead and only 2 // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects 2 // TODO: it's awkward to create a bundle for this but if we don't, the package 1 {name: 'onunknownevent'}, // TODO: Check for event subscriptions 1 // TODO: Should wrap this in flags check, too, as optimization 2 global: 'ReactFlightNativeRelayServer', // TODO: Rename to Writer 1 // TODO: Check if we're inside an Offscreen subtree that disappeared 2 // TODO Clear this data once all pending hydration work is finished. 2 // TODO: Should wrap this in flags check, too, as optimization 2 // TODO: Check if fiber has a PassiveStatic flag 2 // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic) 2 // TODO: Pass `current` as argument 2 TODO List 1 // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So 2 // TODO Decide whether we need to support nested toWarn* expectations. 3 // TODO: Don't hardcode ID. 1 // TODO: Reuse reappearLayoutEffects traversal here? 2 // TODO: cancel previous fetch? 1 // TODO: Move createInstance to beginWork and keep it on a context 2 // TODO: Many tests were written before we started running them against the 1 // TODO: 18.0.0 has not been released to NPM; 1 // TODO: If a refresh never commits, the new cache created here must be 2 // TODO: This needs to run whenever there's an insertion or update 2 // TODO: Here, There, and Everywhere. 1 // TODO: Error Boundaries. 1 // TODO: Move this and createInstance step into the beginPhase 2 // TODO: Delete all other places that schedule the passive effect callback 2 // TODO: can't really import a server component on the client. 1 // TODO: Move to passive phase 4 // TODO: We really only need to unsuspend only lanes that are in the 2 // TODO: Move this back to throwException because this is too late 2 // TODO: Consider consolidating this with `yieldValue`. In both cases, tests 1 // TODO: Consider staging the release in a different directory from the CI 1 // TODO: ideally we'd gather deps here but it would require 1 // TODO: I think this is now always non-null by the time it reaches the 4 // TODO: Factoring is a little weird, since we check this right below, too. 2 // FIXME: What if the suspended lanes are Idle? Should not restart. 2 // TODO: This generates all the renderer configs at once. Originally this was 1 // TODO: Optimize slightly by comparing to root that fiber belongs to. 2 useTransition as unstable_useTransition, // TODO: Remove once call sights updated to useTransition 2 // TODO: Lol maybe there's a better way to factor this besides this 2 // TODO: Remove object spread from the source. Prefer Object.assign instead. 1 // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning 2 // /* FIXME (minify-errors-in-prod): Unminified error message in production build! */ 1 {name: 'onClick'}, // TODO: Check for event subscriptions 1 // TODO: We can optimize this by not scheduling the callback earlier. Since we 2 {name: 'mediaGroup', tagName: 'video', read: getAttribute('mediagroup')}, // TODO: Not yet implemented in Chrome. 1 // TODO: I have not verified that this actually works. 1 // TODO: Drop this when these are no longer allowed as the type argument. 9 // TODO: Stop using spyOn in all the test since that seem deprecated. 1 // TODO: Compare selected values to bail out early. 2 global: 'ReactFlightNativeRelayClient', // TODO: Rename to Reader 1 // TODO: In Fizz, id generation is specific to each server config. Maybe we 2 // TODO: Remove array destructuring from the source. Requires runtime. 1 // TODO: Warn if unmounted? 2 // TODO: Instant Transitions, somehow. 1 // TODO: Remove this assignment once we're confident that it won't break 2 // TODO: this is special because it gets imported during build. 1 // TODO: This path is only used by Cache components. Update 2 // TODO: If we're rendering sync either due to Sync, Batched or expired, 2 // TODO: Ideally this would inherit the event time of the current render 2 // TODO: If workInProgress.child is null, we can continue on the tail immediately. 2 // TODO: I think we can remove this, since we now use `DidCapture` in 2 // TODO: Make sure this doesn't override pings that happen while we've 2 // TODO: consider preserving the comments or formatting? 1 startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition 2 // TODO: figure out the API for cross-renderer implementation. 1 // TODO: does clang define __GNUC__ ? 1 // TODO: We could build this if it hasn't been built yet. 1 // TODO: The server should serialize the error message so we can log it 2 // TODO: this is recursive. 2 // TODO: Use the unified fiber stack module instead of this local one? 2 // TODO: Consider warning about bad polyfills 3 // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should 2 // TODO: We should probably always mark the root as suspended immediately 2 // TODO: This import doesn't work because the DevTools depend on the DOM version of React 2 // TODO: findDOMNode doesn't rely on this any more but isMounted does 2 global: 'ReactFlightDOMRelayClient', // TODO: Rename to Reader 1 // TODO: run passive unmount effects when unmounting a root. 2 // TODO: Second argument used to be an optional `calculateChangedBits` 1 // TODO: Flip this flag and rename it something like "forceConcurrentByDefaultForTesting" 2 // TODO: Remove for...of from the source. It requires a runtime to be embedded. 1 // TODO (Offscreen) Check: flags & LayoutStatic 2 isFlowTyped: false, // TODO: type it. 1 // TODO: Maybe we should error on conflicts? Or we could namespace 1 // TODO: I think what we should do is set ForceClientRender inside 2 // TODO: Rename release channel to `next` 1 // TODO: The factoring of this phase could probably be improved. Consider 2 // TODO: revisit this when we implement resuming. 4 // TODO: Should "experimental" also imply "modern"? Maybe we should 1 // TODO: Use an effect tag. 2 // TODO: current can be non-null here even if the component 4 // are originally created (TODO: except during refreshes, until we implement 3 // TODO: Consider unifying this with how the root works. 2 // TODO: Move this branching into the other module instead and just re-export. 1 // TODO: Use symbols? 3 SuspenseList as unstable_SuspenseList, // TODO: Remove once call sights updated to SuspenseList 2 * TODO: See if caughtError and rethrowError can be unified. 1 // TODO: Move to passive phase 2 // TODO: Drop this when these are no longer allowed as the type argument. 2 // TODO: Ideally these types would be opaque but that doesn't work well with 2 // TODO: Retries should be allowed to expire if they are CPU bound for 2 // TODO: use on WWW. 1 // TODO: Why not report this at the dependency site? 1 // TODO: Remove this special case. 1 // TODO: What if the function needs to change on every render anyway? 1 global: 'ReactFlightDOMRelayServer', // TODO: Rename to Writer 1 // TODO: We could fast path by just rendering the tail now. 2 // TODO: Assign this to `suspenseState.retryLane`? to avoid 2 // TODO: Maybe there's some way to consolidate this with 2 // TODO Warn if no hooks are used at all during mount, then some are used during update. 2 // TODO: Move this type conversion to the event priority module. 4 // TODO: Move re-appear call here for symmetry? 2 // TODO: This breaks on empty slots like null children. That's 4 // TODO: This is part of the `componentDidCatch` implementation. Its purpose 2 // TODO: Should not remove render lanes that were pinged during this render 2 // TODO: Move this out of the hot path using a dedicated effect tag. 2 // TODO: Don't need to accumulate this. Instead, we can remove 2 // TODO: If deps are provided, should we skip comparing the ref itself? 4 // TODO: If key === null and child.key === null, then this only applies to 4 {name: 'form', read: getAttribute('form')}, // TODO: Read the property by rendering into a form with i 1 // TODO (effects) It would be nice to avoid calling doesFiberContain() 2 '! FIXME (minify-errors-in-prod): Unminified error message in production build!' 1 // TODO: Since this only detects one of many ways to disable a lint 1 // TODO: www currently relies on this feature. It's disabled in open source. 1 // TODO: Delete this argument when we remove the legacy root API. 4 {name: 'contextMenu', read: getAttribute('contextmenu')}, // TODO: Read the property by rendering a menu with the ID. 1 useDeferredValue as unstable_useDeferredValue, // TODO: Remove once call sights updated to useDeferredValue 2 // TODO: Reconsider this. The counter-argument is that the partial work 2 // TODO: Move out of the loop. This only happens for the first run. 4