Skip to content

Updating this code to Ink 2 #3

@john-osullivan

Description

@john-osullivan

Hello, I'm in the middle of writing a CLI which needed something just like this. However, I'm working in Ink 2, so this component doesn't fly. After reading through the source code, I decided that the underlying primitives are different enough to merit a full rewrite.

I've just about completed that rewrite here https://github.com/Eximchain/ink-quicksearch-input/ :

  • Uses React's new function components and Ink's new hooks
  • Written in Typescript, so props get typechecking in VS Code
  • Internal function names are now oriented around the allowed user interactions (e.g. addCharToQuery, selectUp)

Were you planning on doing this upgrade yourself at some point? Would you want to try and merge this new code into your existing base, or just keep them separate?

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