Skip to content

Add entry for methods! #4

@BonBonSlick

Description

@BonBonSlick

                    if (config.onEntry) {
                        config.onEntry(entry);
                    }

Right now there is no entry!


                    if (config.onEntry) {
                        config.onEntry();
                    }

https://github.com/mintuz/horizon/blob/master/src/index.js#L43

As a result:
1 - docs are wrong

onEntry (entry) => {} Callback which is called when the element to observe is in view, triggers once if triggerOnce is set to true N/A

2 - using this lib we can not get currently observed entry inside hooks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions