Skip to content

Commit

Permalink
chore: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pondorasti committed May 1, 2024
1 parent 0758144 commit 2eee28f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emoji-mart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@campsite-software/emoji-mart",
"version": "5.6.0",
"version": "5.6.1-reactive-store.1",
"description": "Emoji picker for the web",
"license": "MIT",
"homepage": "https://github.com/campsite/emoji-mart",
Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/components/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default class Picker extends Component {
const nextState = this.getInitialState()

if (requiresGridReset) {
console.log('picker requires grid reset')
return this.reset(nextState)
}

Expand All @@ -109,6 +110,7 @@ export default class Picker extends Component {
}

async reset(nextState = {}) {
console.log('picker reset init')
await init(this.props)

this.initGrid()
Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/components/Picker/PickerElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default class PickerElement extends ShadowElement {
this.component = component
}

console.log('picker connected callback', props)

await init(props)
if (this.disconnected) return

Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function init(options, { caller } = {}) {
}

async function _init(props) {
console.log('init', Data)
initialized = true

let { emojiVersion, set, locale } = props
Expand Down Expand Up @@ -249,6 +250,7 @@ async function _init(props) {
}

if (resetSearchIndex) {
console.log('init reset search index')
SearchIndex.reset()
}

Expand Down

0 comments on commit 2eee28f

Please sign in to comment.