@@ -116,9 +116,9 @@ pub struct PerseusAppBase<G: Html, M: MutableStore, T: TranslationsManager> {
116
116
pub ( crate ) entities : EntityMap < G > ,
117
117
/// The app's error pages.
118
118
#[ cfg( client) ]
119
- pub ( crate ) error_views : Rc < ErrorViews < G > > ,
119
+ pub ( crate ) error_views : Option < Rc < ErrorViews < G > > > ,
120
120
#[ cfg( engine) ]
121
- pub ( crate ) error_views : Arc < ErrorViews < G > > ,
121
+ pub ( crate ) error_views : Option < Arc < ErrorViews < G > > > ,
122
122
/// The maximum size for the page state store.
123
123
pub ( crate ) pss_max_size : usize ,
124
124
/// The global state creator for the app.
@@ -337,7 +337,7 @@ impl<G: Html, M: MutableStore, T: TranslationsManager> PerseusAppBase<G, M, T> {
337
337
entities : HashMap :: new ( ) ,
338
338
// We do offer default error views, but they'll panic if they're called for production
339
339
// building
340
- error_views : Default :: default ( ) ,
340
+ error_views : None ,
341
341
pss_max_size : DFLT_PSS_MAX_SIZE ,
342
342
#[ cfg( engine) ]
343
343
global_state_creator : Arc :: new ( GlobalStateCreator :: default ( ) ) ,
@@ -386,7 +386,7 @@ impl<G: Html, M: MutableStore, T: TranslationsManager> PerseusAppBase<G, M, T> {
386
386
entities : HashMap :: new ( ) ,
387
387
// We do offer default error pages, but they'll panic if they're called for production
388
388
// building
389
- error_views : Default :: default ( ) ,
389
+ error_views : None ,
390
390
pss_max_size : DFLT_PSS_MAX_SIZE ,
391
391
// By default, we'll disable i18n (as much as I may want more websites to support more
392
392
// languages...)
@@ -546,12 +546,12 @@ impl<G: Html, M: MutableStore, T: TranslationsManager> PerseusAppBase<G, M, T> {
546
546
#[ cfg( client) ]
547
547
{
548
548
let panic_handler = val. take_panic_handler ( ) ;
549
- self . error_views = Rc :: new ( val) ;
549
+ self . error_views = Some ( Rc :: new ( val) ) ;
550
550
self . panic_handler_view = panic_handler;
551
551
}
552
552
#[ cfg( engine) ]
553
553
{
554
- self . error_views = Arc :: new ( val) ;
554
+ self . error_views = Some ( Arc :: new ( val) ) ;
555
555
}
556
556
557
557
self
0 commit comments