vintasoftware / django-react-boilerplate

Django 5, React, Bootstrap 5 with Python 3 and Webpack project boilerplate
MIT License
1.94k stars 466 forks source link

Fix isLoading state in .pending to be true, in redux store #624

Closed jalilbm closed 10 months ago

jalilbm commented 10 months ago

Description

This PR fixes the isLoading state in the .pending action of the restCheckReducer to correctly indicate when data is being loaded.

Motivation and Context

The isLoading state was incorrectly set to false during pending API calls, which could lead to misleading UI behavior.

Screenshots (if appropriate):

Steps to reproduce (if appropriate):

Types of changes

Checklist:

fjsj commented 10 months ago

thanks @jalilbm merged.