You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: strengthen fiber type guards with runtime validation and cleanup
- Convert boolean-returning fiber tag helpers to real TS type predicates
- Add stateNode !== null checks to host fiber type guards
- Validate full shapes in isHookState, isEffectState, isUpdateQueue, and
isMemoComponent instead of only checking key existence
- Add isUpdate type guard for Update<S> shape validation
- Tighten isTextProps to validate nodeValue is string or number
- Tighten isFiberRoot to verify property types, not just presence
- Guard isHTMLElement, isHTMLInputElement, isElement, isTextNode against
missing DOM globals for SSR safety
- Fix assertTextProps error message to report correct prop source
- Reject prototype-polluting keys in setDynamicProperty/getDynamicProperty
- Add JSDoc warnings to getMemoizedState/assertMemoizedState about unchecked casts
- Rename mergeLanesUnsafe/intersectLanesUnsafe/removeLanesUnsafe to
mergeLanes/intersectLanes/removeLanes
- Move Host* type aliases above their corresponding type guard functions
0 commit comments