SQLSTATE[40001]: Serialization failure: 1213 Deadlock issue caused by INSERT trigger on concurrent access

I found a SQL deadlock issue which occurs when the function is executed concurrently by two users. I have a PHP function which executes several database insert queries which enclose in a transaction. And one of the inserts fires a trigger as well. See my table schema and code sample below. main_table CREATE TABLE `main_table`…

Edge – navigating on Angular iframe sets history.state to null

We have an Angular 7 app that sits inside an iframe on all of our clients websites. All the navigation inside the app is done through this helper class: import {Injectable} from ‘@angular/core’; import {Router} from “@angular/router”; @Injectable() export class NavigationService { constructor(private router: Router) {} private navigate(path, queryParams = {}){ this.router.navigate([path], { queryParams: queryParams,…