Topic: Constructor calling two times

rashesh patel free asked 4 years ago


We are using "SideNav" in our code. The method constructor calling 2 times in all .js file by refreshing any page & fetching data from the server end, code is placed in the constructor method.

Piotr Glejzer staff commented 4 years ago

We have removed the constructor in our code in the previous versions. Did you check it?

rashesh patel free commented 4 years ago

Hi Piotr,

From which version construction is not used in MDB React??

Piotr Glejzer staff commented 4 years ago

I'm not sure but that was probably 2 months ago. We changed every construction to state with our eslint config.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.18.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No