Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

feat(core): process completion as a state enhancer #29

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

francoischalifour
Copy link
Owner

This removes the top-level getCompletion() API and enhance the autocomplete state with a completion property.

Conceptually, it makes more sense for the completion to be in the state rather than available in a separate method. It also makes possible to leverage it in the sources and templates now.

I'm thinking of using this "state enhancer" patterns to support plugins. I'll experiment with a plugin API and try to introduce autocomplete-plugin-recent-searches based on this concept.

@francoischalifour francoischalifour merged commit 53c2ef7 into next Feb 24, 2020
@francoischalifour francoischalifour deleted the feat/completion-state branch February 24, 2020 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants