question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: Potential hooks API design

See original GitHub issue

Let’s use this thread to discuss actual design considerations for an actual hooks API.

Prior references:

Along those lines, I’ve collated a spreadsheet listing ~30 different unofficial useRedux-type hooks libraries.

update

I’ve posted a summary of my current thoughts and a possible path forward.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:20
  • Comments:194 (106 by maintainers)

github_iconTop GitHub Comments

41reactions
markeriksoncommented, Apr 9, 2019

the table didn’t look like it had anything to do with hooks.

I’m getting pretty mentally worn out after dealing with both the v7 thread and this thread.

I’m tired of issue comments and arguments. I want to see code.

build hooks, file PRs, let’s see how stuff actually works, then make decisions based on that.

25reactions
markeriksoncommented, Mar 22, 2019

@klandell : no timeline yet. To be entirely transparent:

  • v7 going final is an absolute pre-requisite for even starting to consider a public hooks API
  • Given that v7 is coming along relatively soon after v6, I am absolutely determined to make 100% sure that it’s rock-solid before I hit the button to publish v7-final
  • We’ve gotten along until now without hooks, and everyone’s using connect right now. We need to make sure that works right as our highest priority. Hooks can wait a bit longer.
  • All my free mental time and energy that I actually had to devote to OSS work has been focused on v7 the last couple months
  • At the same time, work has been extremely busy and stressful over these last couple months as well, so there’s been a lot of nights where I simply didn’t have the mental capacity to do anything “productive”
  • I basically have done v7 entirely by myself. I’ve gotten some bits of feedback from folks, but it’s effectively been a one-man show development-wise.
  • I’ve got a couple business travel trips coming up, plus at least one other potential trip this summer
  • There’s a ton of bikeshedding that’s going to be involved in figuring out what hooks APIs we actually want to ship, and then technical work to actually come up with them, and then more beta testing and stuff.

So, frankly, I don’t see it happening very soon, and I don’t even want to speculate on actual timelines.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flexible API Design: Create Hooks for Your PHP API Pipeline
In this article, we discussed what hooks/actions are and how they might be used. We gave some example PHP code that you can...
Read more >
Don't Sacrifice Your Declarative API for One Use Case
Designing React components that support declarative and imperative APIs. ... API for One Use Case: A React Pattern for Conditional Hooks.
Read more >
Best Practices for Designing a Pragmatic RESTful API
An API is a user interface for a developer. Learn the best practices to make an API that is easy to adopt and...
Read more >
Hooks API Reference - React
This page describes the APIs for the built-in Hooks in React. ... Prefer the standard useEffect when possible to avoid blocking visual updates....
Read more >
James Higginbotham talks about his new book - YouTube
In this video, API practitioner James Higginbotham (LaunchAny) talks about his new book, "Principles of Web API Design.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found