Skip to content

Bug: use keyToListDimensionsMap instead of indexKey to find item dimension first. #45

@ryuever

Description

@ryuever

To Reproduce

const useMountItem = props => {
  if (initialRef.current) {
    const { remover, dimensions: itemDimensions } = dimensions.registerItem(
      itemKey,
      {
        ignoredToPerBatch,
        recyclerType,
      },
    );
    disposerRef.current = remover;
    // @ts-ignore
    itemDimensionsRef.current = itemDimensions

    initialRef.current = false;
  }

  useMemo(() => {
    // itemMeta will be null
    const itemMeta = dimension.getFinalKeyMeta(itemKey)
  }, [])
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions