ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Invalidate render cache method for CacheState.

use crate::widgets::markdown_widget::state::cache_state::CacheState;

impl CacheState {
    /// Invalidate only the render cache.
    ///
    /// Call this when width changes but content is the same.
    pub fn invalidate_render(&mut self) {
        self.render = None;
    }
}