Tauri Concepts: State Management

  Рет қаралды 4,047

Simon Hyll

Simon Hyll

Жыл бұрын

Today I wanted to take a look at State Management within Tauri, a concept that's sadly not covered in enough detail on the official website currently. For this video we're going to be looking at an article I made for the topic and I'll illustrate how it can work in practise.
hackmd.io/@simonhyll/r1O1reUr2
❤️ Sponsor me ❤️
github.com/sponsors/simonhyll

Пікірлер: 6
@knowledgedose1956
@knowledgedose1956 9 ай бұрын
Thank you for the content. One in a million video. Valuable especially because you are in the Tauri working group🎉.
@andreacinquepalmi7649
@andreacinquepalmi7649 11 ай бұрын
Great video and explanation! Also the pace was perfect, especially for people that just adopted Tauri like me.
@jww0007
@jww0007 Жыл бұрын
really good
@quasozial2275
@quasozial2275 11 ай бұрын
Could u make a video about the shell?
@TheZazatv
@TheZazatv Жыл бұрын
I've used state from Tauri and I need your advice. Let's say on the frontend I have a button. By clicking we sand a command to rust. In rust we call service which is making a http request and waits for a response. In that time I wish to ignore all the events send by clicking the button unless our service is able to take a new request. I do it by having is_loading flag inside a service that makes a http request. It manages it's state accordingly to the current state of the http request. So in order to have a single service instance i had to find ways to do that. I can't pass a service as an argument to the command [and the command runs in different thread so the compiler was mad at me since i was writing non thread safe code]. At first I thought about static singleton. Then I found out about the state && Tauri's Mutex and it worked finally. I was wondering what is the proper way to do that or this is the way?
@TheZazatv
@TheZazatv Жыл бұрын
Btw I didn't watch the video to the end. Gonna do it tomorrow :)
Tauri Concepts: Commands
53:27
Simon Hyll
Рет қаралды 1,5 М.
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 76 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 23 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 78 МЛН
Daniel Thompson-Yvetot - Tauri 2.0 - DevWorld 2024
23:36
JSWORLD Conference
Рет қаралды 1 М.
ELECTRON: why people HATE it, why devs USE it
17:19
The Linux Experiment
Рет қаралды 182 М.
Fixing RAG with GraphRAG
15:04
Vivek Haldar
Рет қаралды 2,7 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 98 М.
Improve your Rust APIs with the type state pattern
14:45
Let's Get Rusty
Рет қаралды 82 М.
Why i think C++ is better than rust
32:48
ThePrimeTime
Рет қаралды 275 М.
Electron vs Tauri: This Was Unexpected!!
9:41
DashCruft
Рет қаралды 37 М.
Persist your settings in Tauri with Zustand and tauri-plugin-store
10:52
Orchard Dweller
Рет қаралды 2,6 М.
#miniphone
0:16
Miniphone
Рет қаралды 3,6 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 5 МЛН