---
title: "currentCompositeKeyHash"
description: "This a hash value used to coordinate map externally stored state to the composition. For example,
this is used by saved instance state to preserve state across activity lifetime boundaries.

This value is likely to be unique but is not guaranteed unique. There are known cases, such as
for loops without a [key], where the runtime does not have enough information to make the
compound key hash unique."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Prefer the higher-precision currentCompositeKeyHashCode

```kotlin
public val currentCompositeKeyHash: Int
```


This a hash value used to coordinate map externally stored state to the composition. For example,
this is used by saved instance state to preserve state across activity lifetime boundaries.

This value is likely to be unique but is not guaranteed unique. There are known cases, such as
for loops without a `key`, where the runtime does not have enough information to make the
compound key hash unique.



