project-forms / project-forms.github.io

Forms for GitHub Projects
https://project-forms.github.io/
ISC License
1 stars 0 forks source link

Use `react-router`'s `loader()` and `action()` #37

Open oscard0m opened 9 months ago

oscard0m commented 9 months ago

Expected Output

To rely on React Router's loader() and action() instead of using useNavigate() when rendering the component.

📚 Context

It is a recommendation of react-router docs:

image

But... why?

Technical refinement

WIP

I plan to get deeper into current implementation of octokit-provider's. Concretely how we are managing the authentication context. The idea is to see what's a good approach to move things out of useContext() and rely on loader() and action() instead.