type Logs = Log[]
interface Log {
// The log method
method: Methods
// The arguments passed to console API
data: any[]
}
However, id seems to be supported and is used for the list key prop. This helped me resolve a bug in my application where we start to mutate the logs array once a max length is reached, while new logs are still coming in.
The current documentation reads:
However,
id
seems to be supported and is used for the listkey
prop. This helped me resolve a bug in my application where we start to mutate thelogs
array once a max length is reached, while new logs are still coming in.If desired, I can open a PR to update the README.