Event Source API An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format. The connection remains open until closed by calling EventSource.close().
Category: Web
IndexedDB
Shortfall of local storage – Only store string data in localStorage, which are susceptible to XSS attacks, and it does
REACT interview questions
What is “prop drilling” and how to prevent it pass the state as “props” through each nested component UseContext hook
React Hooks
Hooks can only be called inside React function components. Hooks can only be called at the top level of a
React App to AWS Amplify
AWS tutorial Github domain hosting create github repo clone github repo create react app npx create-react-app . 4. add all
Browser Storage
Redux May not be persistent. Local Storage Shared between all tabs and windows from the same origin. The data does
Laravel Job and Queue
To place job on the queue using tinker: use Illuminate\Contracts\Bus\Dispatcher; //for command app(Dispatcher::class)->dispatch($command); //for job app(Dispatcher::class)->dispatch(new App\Jobs\TestJob); //or $pending =
Laravel Model
To create a new model php artisan make:model model_name This will make a model file in App directory. As a
PHP access object properties
When encounter access problem to an object’s property, you can Transfer object to array $obj_arr=$obj->toArray(); Access the member $Status =
Ways to Dispatch Laravel Work Process
With minimum configuration according to this stackoverflow post: nohup php artisan queue:work –daemon & This will run the queue:work process