Token non-aware refresh solution

Token unaware refresh solution Imagine that there is a super large form page, the user finally fills it out, and then clicks submit. At this time, the request interface actually returns 401, and then jumps to the login page. . . Then the user must have ten thousand idiots in his heart~~~ Therefore, it is […]

iOS development-custom pull-down refresh control PullDownRefreshView

iOS development-custom pull-down refresh control PullDownRefreshView During the development process, sometimes we need to customize the pull-down refresh control. At this time, we need to customize the PullDownRefreshView. PullDownRefreshView is on UIScrollView. 1. UIScrollView During the pull-down refresh process, you need to implement the relevant methods of the delegate of UIScrollView. //During dragging (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView; […]

Not satisfied with the Token non-perceptual refresh solution on the Internet, I thought of a solution myself~

Big factory technology advanced front-end Node advanced Click above for Programmer Growth Guide and follow the official account Reply 1, join the advanced Node communication group Preface Imagine that there is a super large form page, the user finally fills it out, and then clicks submit. At this time, the request interface actually returns 401, […]

iOS development-Lottie implements pull-down refresh animation effect

iOS development-Lottie implements pull-down refresh animation effect During the development process, sometimes you need to customize the pull-down refresh control. Here, Lottie is used to implement the pull-down refresh animation effect. 1. Lottie Lottie is a widely used animation library, suitable for Android, iOS, Web, ReactNative, and Windows. It parses Adobe After Effects animations exported […]

The problem of react151618 refreshing several times

in conclusion: 16 hooks version Default render1 times During synchronization, no matter how many types or times, it will be rendered once. In asynchronous, no matter how many types or times, one type is executed once. If it is executed multiple times, n*2 is used. 18 hooks version Default render2 times, During synchronization, regardless of […]

Linux, windows command line output control instructions, colored information, multi-line refresh, progress bar effect, golang

1. Colored information linux Color and pattern number // foreground background color //—————————————— // 30 40 black // 31 41 red // 32 42 green // 33 43 yellow // 34 44 blue // 35 45 purple // 36 46 cyan blue // 37 47 white // //Mode code meaning //———————— // 0 terminal default […]

[Javascript] I am not satisfied with the Token non-perceptual refreshing scheme on the Internet, so I thought about it myself and it feels pretty good~

?Foreword Imagine that there is a super large form page, the user finally fills it out, and then clicks submit. At this time, the request interface actually returns 401, and then jumps to the login page. . . Then the user must have ten thousand idiots in his heart~~~ Therefore, it is necessary to implement […]

@RefreshScope (nacos configuration hot update)

Source code analysis Macro process analysis 1. What spring does to beans annotated with @RefreshScopre 1. When calling the get method of the attribute of the bean annotated with @RefreshScope, it is first obtained from the local cache. 2. When the current bean does not exist in the local cache, it will be re-created. At […]

Flow in-depth series: Strategies for automatically refreshing Android data using Kotlin Flow

Flow in-depth series: Using Kotlin Flows in ViewModels Flow in-depth series: more intelligent sharing Kotlin Flows Flow in-depth series: Strategies for automatically refreshing Android data using Kotlin Flow Flow in-depth series: the strategy of using Kotlin Flow to automatically refresh Android data Discuss the use of Kotlin Flow to efficiently load data in Android applications. […]