Make RouteScopeOwner for PreserveOnRefresh more discoverable

Đang mở
#4,157 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với bài viết “Preserving state on refresh” tại https://vaadin.com/docs/latest/flow/advanced/preserving-state-on-refresh, sau đó xem lại tài liệu RouteScope được liên kết tại https://vaadin.com/docs/latest/flow/integrations/spring/scopes#routescope.preserve và phiên bản tương đương cho CDI. Được xem là hoàn tất khi trang về việc bảo toàn khi refresh giải thích bằng ngôn ngữ dễ hiểu cách AtRouteScope, AtRouteScopeOwner và AtPreserveOnRefresh phối hợp với nhau khi các bean AtUIScoped không làm như vậy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

flow

Tell us about your request

I've heard few concerns about AtPreserveOnRefresh not working, when coupled with AtUIScoped beans.
Indeed this combo doesn't work because of architectural limitations, however, you can make this case work with using AtRouteScope + AtRouteScopeOwner + AtPreserveOnRefresh as documented here https://vaadin.com/docs/latest/flow/integrations/spring/scopes#routescope.preserve (same article is in CDI integration).

So the quick improvement is to describe in a human way this possibility in https://vaadin.com/docs/latest/flow/advanced/preserving-state-on-refresh. We may think of another better API, but that's another story.


If you think this issue is important, add a 👍 reaction to help the community and maintainers prioritize this issue.

Ngôn ngữ chính
AsciiDoc
Star
38
Fork
225
Merge trung bình
17 giờ 38 phút
Pull request đã merge (30 ngày)
214

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vaadin/docs

Tất cả issue của vaadin/docs

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.